I have a question to make a TAD, (abstract type of data) in C, with the development environment Xcode
(version 7.2.1 although I do not think it has much to do with the version).
That is, for simple files: test.c
(for example) I have no problems, use any editor and then compile with the terminal as I would with GNU / Linux
(gcc -o "nombredesalida" "nombredearchivo.c")
-without quotes and on the path obviously where the file is- and then compile ./"nombredesalida"
(without the quotes).
Now, I also recently started using Mac OS X Yosemite, and for example, doing the following steps:
* Open the Xcode IDE select OSX - > Command Line Tool - > Locate the project in a folder - > The project is automatically created with the file main.c
;
now I add the two missing files for example the prueba.c
and the prueba.h
.
On Windows I always use CodeBlocks and 0 problems, now when I'm going to compile I always see the same error, the following:
"Undefined symbols for architecture x86_64:" _mostar ", referenced from: _main in main.o ld: symbol (s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) "
On Windows with CodeBlocks I have no problems, if anyone knows I would appreciate an answer. Or failing that, IDE use to create project in C, in Mac and steps if it is not too much trouble, or some link where you can read how to make it work because I have not found a solution, thank you very much!