Hi all: <br id="andy">I can't create makefile in&nbsp;&nbsp;Visual C++ Express Edition Version 8.0.50727.42, I use Example in cmake. <br id="andy"> <br id="andy">I found it want to find 'user32.lib', but system don't obtain it. it only have 'user32.dll' <br id="andy"> <br id="andy">How to avoid it to go to find 'user32.lib'? <br id="andy"> <br id="andy"> <br id="andy">the error is : <br id="andy"> <br id="andy"> <br id="andy">E:zhb_svnmingwbuildcmake_demo_build&gt;cmake -G"Visual Studio 8 2005" ....cmake_demo <br id="andy">-- Check for working C compiler: D:/vc8/VC/bin/cl.exe <br id="andy">-- Check for working C compiler: D:/vc8/VC/bin/cl.exe -- broken <br id="andy">CMake Error: The C compiler "D:/vc8/VC/bin/cl.exe" is not able to compile a simple test program. <br id="andy">It fails with the following output: <br id="andy"> <br id="andy">Microsoft (R) Visual C++ Express Edition Version 8.0.50727.42. <br id="andy">Copyright (C) Microsoft Corp 1984-2005. All rights reserved.
 <br id="andy">------ Build started: Project: cmTryCompileExec, Configuration: Debug Win32 ------ <br id="andy">Compiling... <br id="andy">Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86 <br id="andy">Copyright (C) Microsoft Corporation.&nbsp;&nbsp;All rights reserved. <br id="andy">cl /Od /D "_MBCS" /FD /EHsc /RTC1 /MDd /Fo"cmTryCompileExec.dirDebug\" /Fd"Debug/cmTryCompileExec.pdb" /W3 /c /Zi /TC&nbsp;&nbsp;&nbsp;&nbsp;/D <br id="andy">WIN32 /D_WINDOWS&nbsp;&nbsp;/Zm1000&nbsp;&nbsp; /D_DEBUG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -DCMAKE_INTDIR="Debug" <br id="andy">&nbsp;&nbsp; .testCCompiler.c <br id="andy">testCCompiler.c <br id="andy">Compiling manifest to resources... <br id="andy">Linking... <br id="andy">Microsoft (R) Incremental Linker Version 8.00.50727.42 <br id="andy">Copyright (C) Microsoft Corporation.&nbsp;&nbsp;All rights reserved. <br id="andy">"/OUT:DebugcmTryCompileExec.exe" /VERSION:0.0 /INCREMENTAL /MANIFEST
 "/MANIFESTFILE:cmTryCompileExec.dirDebugcmTryCompileE <br id="andy">xec.exe.intermediate.manifest" /DEBUG "/PDB:DebugcmTryCompileExec.pdb" /SUBSYSTEM:CONSOLE /STACK:10000000 /machine:I386 /deb <br id="andy">ug kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib <br id="andy">".cmtrycompileexec.dirdebugtestCCompiler.obj" <br id="andy">".cmTryCompileExec.dirDebugcmTryCompileExec.exe.embed.manifest.res" <br id="andy">LINK : fatal error LNK1104: cannot open file 'user32.lib' <br id="andy">Build log was saved at "file://e:zhb_svnmingwbuildcmake_demo_buildCMakeFilesCMakeTmpcmTryCompileExec.dirDebugBuildLo <br id="andy">g.htm" <br id="andy">cmTryCompileExec - 1 error(s), 0 warning(s) <br id="andy">========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ========== <br id="andy"> <br id="andy"> <br id="andy">CMake will not be able to correctly generate this project. <br id="andy">-- Configuring done <br><br>
 have test a simple program in vc 2005 Express Edition. <br id="andy"> <br id="andy">#include &lt;stdio.h&gt; <br id="andy"> <br id="andy">#include "stdafx.h" <br id="andy"> <br id="andy">using namespace std; <br id="andy"> <br id="andy">int _tmain(int argc, _TCHAR* argv[]) <br id="andy">{ <br id="andy"> cout &lt;&lt; "hello world" &lt;&lt; endl; <br id="andy"> printf("hello worldn"); <br id="andy"> <br id="andy"> return 0; <br id="andy">} <br id="andy"> <br id="andy">and can be compiled and linked in vc 2005 Express Edition. it don't need user.lib, and user.lib is static linking, how can I use user.dll to replace user.lib to using dynamic link in cmake. <br id="andy"> <br id="andy">thanks  <br><br><p>&#32;



      <hr size=1><a href="http://cn.mail.yahoo.com" target=blank>ÇÀ×¢ÑÅ»¢Ãâ·ÑÓÊÏä3.5GÈÝÁ¿£¬20M¸½¼þ£¡</a>