I typically create a directory in Usersjohn called Programming where I do any code development. (Which is not much these days.) Workspace Selection After you select your workspace, youll be confronted with an Eclipse peculiarity.Composing a serious chunk of code with vi is no longer acceptable, so users in this frame of mind are now using Eclipse, a modern IDE, thats also free.Whats the Motivation At work recently, my wife was chatting with a colleague who was taking his first C class.
She taught him how to use Eclipse on a Mac, even though he resisted at first. However, later, he came back and commented that the other students were trying to manage ever increasingly complex projects with the vi editor. Print statements in your code are oh, so yesteryear with a tool like this. So if youre a scientist, researcher or engineer who wants to write some research code, not intended as a GUI app, in Java, C, C or Fortran, you need to dump vi as an editor (or Emacs or Nedit or whatever) immediately and get with this kind of IDE. Things are moving far too fast nowadays not to make this important move. Clearly, Im speaking to an older crowd here.) To be perfectly clear, Apples Xcode is a fabulous development system for C, C, Objective-C and even Fortran 77. But many researchers and scientists arent interested in Xcode. Theyve come from a Linux or other UNIX platform, like IBMs AIX, and they just want to carry on their research in Eclipse on a Mac. But, as I mentioned above, students who are taking their first programming class and own a Mac will also find this discussion useful indeed mandatory. Remember, this is an introduction to whet your appetite and get you launched, not a complete Eclipse tutorial. Also, this how-to for the sake of simplicity focuses on CC, but Eclipse can handle a myriad of languages, including, but not limited to, Java and Fortran. Lets start with CC. C++ Ide Install Apples XcodeGetting the gcc Compiler As an aside, when you install Apples Xcode (free from the Mac App Store only in Lion), gcc is automatically installed in usrbin. But if you have a mind to work with just Eclipse and gcc, youll need a way to install gcc without, if it pleases you, installing Apples Xcode first. For reference, heres a how-to on installing Xcode and gcc. There are at least two places I know of where you can get a gcc installer package for OS X: Developer Tools 4.0 Source The OS X High Performance Computing page at Sourceforge managed by Dr. Gaurav Khanna at the University of Mass. Installing Eclipse Heres a handy reference on where to get Eclipse for the Mac. Version 3.7 (Indigo) installs nicely in Lion and seems to work okay, but our household hasnt put it to a grueling acid test with OS X 10.7.1. C++ Ide Download Is AC++ Ide Download For CCEclipse Download for CC, 64-bit The download is a tar.gz file, so move it where you want the Eclipse directory to be because when you double click it, the package will be unzipped and untared right there. After Eclipse is installed, youll see it as an app, just like any other, with this icon. Its easy to create an alias to eclipse.app, if you wish, and place it in your Application directory. Because the Eclipse IDE itself is written in Java, if youre running a clean copy of Lion, youll need to download the Java runtime before the Eclipse app will launch. Just double-click on Eclipse, and itll trigger the required Java runtime download. Nothing else to do. If youre in Snow Leopard, the Java runtime is already there. Java runtime download This first thing youll see when you run Eclipse is that it asks for the location of your workspace. I typically create a directory in Usersjohn called Programming where I do any code development. Which is not much these days.) Workspace Selection After you select your workspace, youll be confronted with an Eclipse peculiarity.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |