[CMake] FW: building a mixed language programm with CMake

Denis Scherbakov denis_scherbakov at yahoo.com
Wed Jun 10 08:50:11 EDT 2009


> /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



      


More information about the CMake mailing list