Ok. I do not understand how to use cl, I switch to using gcc instead (cygwin). Here it is again:
/usr/local/bin/gcc.exe -DCHECK_FUNCTION_EXISTS=UuidCreate -o CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.o -c /usr/share/cmake-2.4.8/Modules/CheckFunctionExists.c Linking C executable cmTryCompileExec.exe /usr/bin/cmake.exe -P CMakeFiles/cmTryCompileExec.dir/cmake_clean_target.cmake /usr/local/bin/gcc.exe -DCHECK_FUNCTION_EXISTS=UuidCreate "CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.o" -o cmTryCompileExec.exe -Wl,--major-image-version,0,--minor-image-version,0 -lrpcrt4 CMakeFiles/cmTryCompileExec.dir/CheckFunctionExists.o:CheckFunctionExists.c:(.text+0x1a): undefined reference to `_UuidCreate' collect2: ld returned 1 exit status make[1]: Leaving directory `/home/mmalaterre/Projects/gdcm/debug-gcc422/CMakeFiles/CMakeTmp' make[1]: *** [cmTryCompileExec.exe] Error 1 make: *** [cmTryCompileExec/fast] Error 2 where is the '_' coming from ? Is this something standard to gcc ? Thanks, -- Mathieu _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
