If you look in the directory where the source is, you should notice a file with the same name, but ending in. ![]() No output on the console is good it means that no errors occured. Using the command I gave previously basically compiles your source into an object file, so it can be linked with any other object files and turned into an executable. Sorry, I assumed you knew how to use gcc. Compiling Linux apps is best left to another Unix-tool wrapper, though. Thus, if you have Xcode already installed, using gcc is as simple as opening up the terminal (/Applications/Utilities/Terminal) and entering something like # gcc -c myfile.cĪnd it should work. However, Xcode is merely an IDE - the actual Unix compilers it uses, such as g++ and gcc are installed along with Xcode. ![]() Xcode, Apple's IDE can be installed from the Apple Developer disc or downloaded from their website with a free Developer Account. Mac OS X by default does not come with any C/C++ compilers. Ravalon's link is not much good, since you'll have to do a lot of hunting to find gcc for FreeBSD that's compiled for the correct processor that's contained in your Mac. It can run all tools that Unix/Linux can run, although since it's Unix clone, it's a bit modified and often Linux programs need to be modified to compile on Mac OS X Mac OS X is indeed a POSIX operating system, built on top of FreeBSD, which is a Unix clone. Alright, a little bit of information here.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |