
This resource concentrates on fortran compilers and the tools needed to support them. Most (though not all) computational engines supported by WebMO are written in fortran. ), a substantial base of scientific code is written in fortran. It is a versatile computing platform suitable both for computational chemistry calculations and for developing and compiling programs.Īlthough scientific programs use a variety of languages (basic, pascal, c, java, perl, python. The Mac OS X operating system is a variant of unix (called Darwin, which is a derivative of BSD unix). For handing in the executable, simply dig around in your project's folder->Build->Development->yourexecutablehere.Fortran Compiler Installation Instructions for OS X For Xcode, it's as simple as pressing the Build & Run button, and a console window should pop up.

Whoops, misread your post! ) I thought you were using gcc/g++, not Xcode. You can also use gcc to link and compile multiple files see the gcc manual for a very detailed guide: myfileĪlternativey, you can skip the object file step and directly compile the file into an executable: # gcc myfile.c -o myfile Which will create an executable named "myfile". If you want to link an object file into an executable, you can do the following: # gcc myfile.o -o myfile 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.
