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