> /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/crt1.o:
> In function `_start':
> (.text+0x20): undefined reference to `main'
 
Try to compile with VERBOSE option:

make VERBOSE=1

this will show you, what GCC does.
 
> The only library I tell CMake to link to is libgfortran.so.
> What libraries does CMake usually link to, without
> specifying?

None. CMake is a Makefile generator it does not compile or link.
Could you run "nm test.o" and "nm hello.o" and post the result?
Also post verbose output.

Denis



      
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to