<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; U __gxx_personality_v0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; U hello1_<br>0000000000000000 T main<br>$ nm hello.o<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; U _gfortran_st_write<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; U _gfortran_st_write_done<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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 &amp;&amp; /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&nbsp;&nbsp; -fPIC&nbsp; CMakeFiles/hi.dir/hello.o&nbsp; -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>&gt; Date: Wed, 10 Jun 2009 05:50:11 -0700<br>&gt; From: denis_scherbakov@yahoo.com<br>&gt; Subject: Re: [CMake] FW: building a mixed language programm with CMake<br>&gt; To: cmake@cmake.org; nataliehapp@hotmail.com<br>&gt; <br>&gt; <br>&gt; &gt; /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/crt1.o:<br>&gt; &gt; In function `_start':<br>&gt; &gt; (.text+0x20): undefined reference to `main'<br>&gt;  <br>&gt; Try to compile with VERBOSE option:<br>&gt; <br>&gt; make VERBOSE=1<br>&gt; <br>&gt; this will show you, what GCC does.<br>&gt;  <br>&gt; &gt; The only library I tell CMake to link to is libgfortran.so.<br>&gt; &gt; What libraries does CMake usually link to, without<br>&gt; &gt; specifying?<br>&gt; <br>&gt; None. CMake is a Makefile generator it does not compile or link.<br>&gt; Could you run "nm test.o" and "nm hello.o" and post the result?<br>&gt; Also post verbose output.<br>&gt; <br>&gt; Denis<br>&gt; <br>&gt; <br>&gt; <br>&gt;       <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>