![]() ![]() If your professor is recommending cygin, you'll just cause problems trying to use xcode.Īs above, if you try to start out in xcode, you'll waste more time trying to learn the IDE than actually trying to learn to code. I'd suggest textwrangler, as it does C syntax highlighting amongst other languages, which will give you the most helpful IDE feature without forcing you to learn how to drive the IDE. You can then write code with the text editor of your choice, and compile with gcc. Click to expand.If you install the developer tools, you will get gcc and clang, which are the equivalent of cygwin. If you do decide to use the Terminal, you might want to look into using vi or emacs as well. It discusses compiling from the command line. They created C and the book is extremely applicable, even today. As for the actual book, you can use 'Learn C the Hard Way' but hopefully you are just using the K&R C book. It's EXTREMELY important (but maybe not necessary) to learn command line tools, really helpful. On the other hand, I've used Xcode and I think it's too bloated for someone beginning. And while people swear by it, I really couldn't get into it. However, I've used CodeRunner for small C programs and if you are reading from a book, CodeRunner is perfect for that. As a matter of fact, in my Systems Programming class, all we do is use the Terminal. When I first started writing in Java, I used Coda 2 as a text editor and the Terminal. ![]() It's a cheap, no-frills program that allows you to write Java, C, C++, Objective-C, etc. Not to discourage you from using the Terminal, you really should give it a shot, but you can also check out CodeRunner. It has the benefit of leaving you equipped to handle programming whether or not XCode is installed, or on another OS. This, incidentally, is also the advice from 'Learn C the Hard Way'. ![]() Follow AzN's directions and use gcc from the terminal to compile your code. ![]() If your professor is pointing you toward cygwin, it means the standard you'll be learning from is likely a 'text editor + complier'. How do I get the Mac OS X GCC toolchain to appear in the toolchain selection in Eclipse?Ĭlick to expand.I agree with this - IDEs add an unnecessary level of complication for learning the language. When I go to Eclipse -> Preferences -> New CDT Project Wizard -> Toolchains: all I see is GNU Autotools Toolchain I don't see the 'Mac OS X GCC toolchain'. If you want to develop GUI Apps without XCode, you’re going to be walking uphill in neck deep snow, no matter what you use. If you want to write anything GUI on Mac OS X, you will find it difficult unless you use XCode. I am running OS X (10.7.4) Xcode 4.3.2, and I checked, and I do have Command Line Tools installed. And I wanted to use the Mac OS X toolchain that is provided with Xcode. I installed Eclipse ( Eclipse IDE for C/C++ Developers Version: Juno Release Build id: 201) today. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |