Did you run nm on the library containing these symbols to verify they exist?<br><br>_tetra_zone_copy_<br>_xyz_vertex_copy_<br><br>The trailing underscore is reminiscent of a Fortran compiler.&nbsp; Are you using the write convention when calling these functions from C code?&nbsp; On Linux, you would call the Fortran function foo as foo_.
<br><br>Should you be linking against libm, if you are getting the same symbols from libimf.a?<br><br>ld: warning multiple definitions of symbol _modf<br>/opt/intel/cc/10.0.016/lib/libimf.a(modf_stub.o) definition of _modf in
<br>section (__TEXT,__text)<br>/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../..//libm.dylib(xmm_floor.o)<br>definition of _modf<br><br>Regards,<br><br>Juan<br><br><div><span class="gmail_quote">On 9/27/07, <b class="gmail_sendername">
Marie-Christine Vallet</b> &lt;<a href="mailto:mmvallet@ucdavis.edu">mmvallet@ucdavis.edu</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Mike Jackson wrote:<br>&gt; Marie,<br>&gt;&nbsp;&nbsp; Use the following in your CMakeLists.txt file, generally near the<br>&gt; top just after you define the PROJECT (... )<br>&gt;<br>&gt; SET (LIBRARY_OUTPUT_PATH &quot;${PROJECT_BINARY_DIR}/Bin&quot; CACHE INTERNAL
<br>&gt; &quot;For libraries.&quot;)<br>&gt; SET (EXECUTABLE_OUTPUT_PATH &quot;${PROJECT_BINARY_DIR}/Bin&quot; CACHE INTERNAL<br>&gt; &quot;For executables.&quot;)<br>&gt;<br>done<br>&gt; This will put all the compiled libraries and executables into the same
<br>&gt; bin directory.<br>&gt;<br>&gt; Also, I think you may be missing a key philosophy of CMake which is<br>&gt; &quot;Out of Source&quot; builds. In your project folder create a new folder<br>&gt; called &quot;Build&quot;. Then from the a terminal run the following commands:
<br>&gt;&nbsp;&nbsp;cd Build<br>&gt;&nbsp;&nbsp;cmake ../<br>&gt;&nbsp;&nbsp;make<br>&gt;<br>thanks, I did not know that<br>&gt;<br>&gt; Also, on to the actual problem, can you post the actual linker<br>&gt; command? Run &quot;make VERBOSE=1&quot; and post the output.
<br>&gt;<br>I did the modifications you suggested, but&nbsp;&nbsp;it still does not work. For<br>the include directory, I had to keep<br>these lines :<br><br>*--------------------------<br><br>&gt; SET(SKINMESH_INCLUDE_DIR<br>&gt; ${CMAKE_SOURCE_DIR}/skinmesh
<br>&gt; )<br><br><br>&gt; SET(INCLUDE_DIR<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ${INCLUDE_DIR}<br>&gt; ${SKINMESH_INCLUDE_DIR}<br>&gt;<br>&gt; )<br><br>&gt; SET(INCLUDE_DIR<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ${INCLUDE_DIR}<br>&gt; ${SKINMESH_INCLUDE_DIR}<br>&gt;
<br>&gt; )<br>*--------------------------<br> even though I did made the modification suggested in cmake file&nbsp;&nbsp;the<br>source directory otherwise, it was not working<br><br>Here is my&nbsp;&nbsp;linker command:<br><br>Linking CXX executable ../bin/mdi
<br>cd /Users/program/qtskinmesh/build/mdi &amp;&amp; /usr/local/bin/cmake -P<br>CMakeFiles/mdi.dir/cmake_clean_target.cmake<br>cd /Users/program/qtskinmesh/build/mdi &amp;&amp;<br>/opt/intel/cc/10.0.016/bin/icpc&nbsp;&nbsp;&nbsp;&nbsp; -O3 -mp1 -Kc++ -Dintel
<br>-headerpad_max_install_names&nbsp;&nbsp;-bind_at_load &quot;CMakeFiles/mdi.dir/main.o&quot;<br>&quot;CMakeFiles/mdi.dir/csbdmainwindow.o&quot; &quot;CMakeFiles/mdi.dir/csbdmdichild.o&quot;<br>&quot;CMakeFiles/mdi.dir/moc_csbdmainwindow.o&quot;
<br>&quot;CMakeFiles/mdi.dir/moc_csbdmdichild.o&quot;<br>&quot;CMakeFiles/mdi.dir/qrc_qt4skinmesh.o&quot;&nbsp;&nbsp; -o ../bin/mdi<br>-L/Users/program/qtskinmesh/build/skinmesh<br>-L/Users/program/qtskinmesh/build/bin -L/usr/local/lib
<br>-L/usr/X11R6/lib -L/opt/intel/fc/10.0.016/lib -F/Library/Frameworks<br>-framework QtGui -framework Carbon -framework QuickTime -framework QtXml<br>-framework QtCore -lz -framework ApplicationServices -framework QtOpenGL
<br>-lQGLViewer -lgmp -lm -lGL -lGLU -lirc -limf -lifcore -lskinmesh -lgmp -lm<br>-lGL -lGLU -lirc -limf -lifcore<br>ld: warning multiple definitions of symbol _modf<br>/opt/intel/cc/10.0.016/lib/libimf.a(modf_stub.o) definition of _modf in
<br>section (__TEXT,__text)<br>/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../..//libm.dylib(xmm_floor.o)<br>definition of _modf<br>ld: Undefined symbols:<br>_tetra_zone_copy_<br>_xyz_vertex_copy_<br><br><br>and my Undefined symbols are all part of my newly created library
<br>skinmesh.&nbsp;&nbsp;What suprrisses me the most is that all that works on fedora<br>core 6....<br><br>Thanks again,<br>Marie<br><br><br><br><br>_______________________________________________<br>CMake mailing list<br><a href="mailto:CMake@cmake.org">
CMake@cmake.org</a><br><a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>