On 6/21/2010 9:59 AM, Gerry Weaver wrote:
Hello All,

Thank you for your replies.

The cmake command fails when trying to compile the test file. It says it
cannot find kernel32.lib. I can compile and link without cmake just
fine. Any ideas?


Did you run this exact command line:

  cl foo.cxx kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib
   ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib

Again:

 Are you using the Express or professional version of VS 2008?
>
>     If Express, you need to follow these instructions:
> http://blogs.msdn.com/b/windowssdk/archive/2008/02/22/using-visual-c-2008-express-with-the-windows-sdk-detailed-version.aspx
>
> Make sure you run CMake and your compiler from a shell that has all the
>     environment that cl needs to run.
>

-Bill
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to