| Undefined symbols for architecture x86_64: "_main", referenced from: start in crt1.10.6.o [message #911195]
||Tue, 11 September 2012 07:05
| Santiago Ipiña
Registered: September 2012
When trying to run a simple fortran program - read a name and print it - Eclipse juno on a Mac Pro with Lion says: Undefined symbols for architecture x86_64: "_main", referenced from: start in crt1.10.6.o Specifically, this error is obtained after the Mac OSX Fortran Linker is invoked.|
If, however, I compile the program from Terminal with gfortran -o and run the executable this way generated, all is ok. My gcc is 4.7 in spite of the fact that I'm using XCode 4.4 (which gcc is 4.2) and, of course, the command line tools are installed.
All this seems to mean, I think, that something is wrong with Eclipse juno regarding the MacOS X Fortran compilation process. Any help will be appreciated.
[Updated on: Tue, 11 September 2012 16:57]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01748 seconds