<div dir="ltr">First time poster, long time user. Great work cmake team!<br><br>I'm
trying to get cmake to detect several kernel32 functions but I can't
get cmake to find the actual functions. I've tried taking
CheckFunctionExists.c and compiling it in a seperate projects and
everything works as expected. The linker lists kernel32.lib in the
error output. <br>
<br>Below is visual studio 6 output, but visual studio 8 has the same
issue. Going back to CMake 2.4 doesn't help either. Trying with other
kernel functions such as CreateFileMappingA doesn't work either.<br><br>
I'm stuck; I couldn't find anything i think is releveant in the cmake
mailing list archives or on google. Any idea where things are going
wrong? <br>
<br><br>Thanks,<br>Ben<br>---<br><br>Determining if the function <ol><li>MapView</li></ol><div dir="ltr">OfFile exists failed with the following output:<br>Change Dir: D:/projects/svn_clucene2_4_3-reloaded/msvc6/CMakeFiles/CMakeTmp<br>
<br>Run Build Command:C:\PROGRA~1\MICROS~3\Common\MSDev98\Bin\<a href="http://msdev.com/" target="_blank">MSDEV.COM</a> CMAKE_TRY_COMPILE.dsw /MAKE "cmTryCompileExec - Debug" /BUILD<br>--------------------Configuration: cmTryCompileExec - Win32 Debug--------------------<br>
<br>Compiling...<br><br>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86<br><br>Copyright (C) Microsoft Corp 1984-1998. All rights reserved.<br><br>cl /MDd /W3 /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_WINDOWS" /D CHECK_FUNCTION_EXISTS=MapViewOfFile /D "_MBCS" /D CMAKE_INTDIR=\"Debug\" /Fo"Debug/" /Fd"Debug/" /FD /GZ /Zm1000 /GZ /TC /c <br>
<br> "C:\Program Files\CMake 2.6\share\cmake-2.6\Modules\CheckFunctionExists.c"<br><br>CheckFunctionExists.c<br><br>Linking...<br><br>Microsoft (R) Incremental Linker Version 6.00.8168<br><br>Copyright (C) Microsoft Corp 1992-1998. All rights reserved.<br>
<br>kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib
odbccp32.lib /version:0.0 /stack:0x989680 /subsystem:console
/incremental:yes "/pdb:D:\projects\svn_clucene2_4_3-reloaded\msvc6\CMakeFiles\CMakeTmp\Debug/cmTryCompileExec.pdb" /debug /machine:I386 "/out:D:\projects\svn_clucene2_4_3-reloaded\msvc6\CMakeFiles\CMakeTmp\Debug/cmTryCompileExec.exe" /pdbtype:sept /IGNORE:4089 /implib:D:\projects\svn_clucene2_4_3-reloaded\msvc6\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.lib <br>
<br>".\Debug\CheckFunctionExists.obj" <br><br>CheckFunctionExists.obj : error LNK2001: unresolved external symbol _MapViewOfFile<br><br>D:\projects\svn_clucene2_4_3-reloaded\msvc6\CMakeFiles\CMakeTmp\Debug/cmTryCompileExec.exe : fatal error LNK1120: 1 unresolved externals<br>
<br>Error executing link.exe.<br><br><br><br>cmTryCompileExec.exe - 2 error(s), 0 warning(s)<br><br></div></div>