<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi!<br>I have run the commands:<br><br>$ nm test.o<br> U __gxx_personality_v0<br> U hello1_<br>0000000000000000 T main<br>$ nm hello.o<br> U _gfortran_st_write<br> U _gfortran_st_write_done<br> U _gfortran_transfer_character<br>0000000000000000 T hello1_<br><br>$ make VERBOSE=1<br>/usr/bin/cmake -H/home/happenhofer/versuche/CMake_tryout/Fortran -B/home/happenhofer/versuche/CMake_tryout/Fortran --check-build-system CMakeFiles/Makefile.cmake 0<br>/usr/bin/cmake -E cmake_progress_start /home/happenhofer/versuche/CMake_tryout/Fortran/CMakeFiles /home/happenhofer/versuche/CMake_tryout/Fortran/CMakeFiles/progress.make<br>make -f CMakeFiles/Makefile2 all<br>make[1]: Entering directory `/home/happenhofer/versuche/CMake_tryout/Fortran'<br>make -f CMakeFiles/hi.dir/build.make CMakeFiles/hi.dir/depend<br>make[2]: Entering directory `/home/happenhofer/versuche/CMake_tryout/Fortran'<br>cd /home/happenhofer/versuche/CMake_tryout/Fortran && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/happenhofer/versuche/CMake_tryout/Fortran /home/happenhofer/versuche/CMake_tryout/Fortran /home/happenhofer/versuche/CMake_tryout/Fortran /home/happenhofer/versuche/CMake_tryout/Fortran /home/happenhofer/versuche/CMake_tryout/Fortran/CMakeFiles/hi.dir/DependInfo.cmake --color=<br>make[2]: Leaving directory `/home/happenhofer/versuche/CMake_tryout/Fortran'<br>make -f CMakeFiles/hi.dir/build.make CMakeFiles/hi.dir/requires<br>make[2]: Entering directory `/home/happenhofer/versuche/CMake_tryout/Fortran'<br>make[2]: Nothing to be done for `CMakeFiles/hi.dir/requires'.<br>make[2]: Leaving directory `/home/happenhofer/versuche/CMake_tryout/Fortran'<br>make -f CMakeFiles/hi.dir/build.make CMakeFiles/hi.dir/build<br>make[2]: Entering directory `/home/happenhofer/versuche/CMake_tryout/Fortran'<br>Linking Fortran executable hi<br>/usr/bin/cmake -E cmake_link_script CMakeFiles/hi.dir/link.txt --verbose=1<br>/usr/bin/gfortran -fPIC CMakeFiles/hi.dir/hello.o -o hi -rdynamic -lgfortran <br>/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/crt1.o: In function `_start':<br>(.text+0x20): undefined reference to `main'<br>collect2: ld returned 1 exit status<br>make[2]: *** [hi] Error 1<br>make[2]: Leaving directory `/home/happenhofer/versuche/CMake_tryout/Fortran'<br>make[1]: *** [CMakeFiles/hi.dir/all] Error 2<br>make[1]: Leaving directory `/home/happenhofer/versuche/CMake_tryout/Fortran'<br>make: *** [all] Error 2<br><br><br>Thanks a lot for your effort!<br>Natalie<br><br><br>> Date: Wed, 10 Jun 2009 05:50:11 -0700<br>> From: denis_scherbakov@yahoo.com<br>> Subject: Re: [CMake] FW: building a mixed language programm with CMake<br>> To: cmake@cmake.org; nataliehapp@hotmail.com<br>> <br>> <br>> > /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/crt1.o:<br>> > In function `_start':<br>> > (.text+0x20): undefined reference to `main'<br>> <br>> Try to compile with VERBOSE option:<br>> <br>> make VERBOSE=1<br>> <br>> this will show you, what GCC does.<br>> <br>> > The only library I tell CMake to link to is libgfortran.so.<br>> > What libraries does CMake usually link to, without<br>> > specifying?<br>> <br>> None. CMake is a Makefile generator it does not compile or link.<br>> Could you run "nm test.o" and "nm hello.o" and post the result?<br>> Also post verbose output.<br>> <br>> Denis<br>> <br>> <br>> <br>> <br><br /><hr />¡Es hora que descubras quién eres! <a href='http://www.descubrewindowslive.com/' target='_new'>Alguien puede conocerte mejor que tu mismo.</a></body>
</html>