<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html>
<head>
 <meta http-equiv='Content-Type' content='text/html;charset=iso-8859-1'>
 <style>BODY{font:10pt Tahoma, Verdana, sans-serif;}</style>
</head>
<body>
<DIV align="left">Hello All,</DIV><DIV align="left"><BR></DIV><DIV align="left">Thank you for your replies. </DIV><DIV align="left"><BR></DIV><DIV align="left">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?</DIV><DIV align="left"><BR></DIV><DIV align="left">Thanks,</DIV><DIV align="left">-G <BR><BR><BR></DIV><BLOCKQUOTE style="padding-left: 5px; margin-left: 5px; border-left: #0000ff 2px solid; margin-right: 0px"><HR><B>From:</B> Bill Hoffman [mailto:bill.hoffman@kitware.com]<BR><B>To:</B> cmake@cmake.org<BR><B>Sent:</B> Mon, 21 Jun 2010 08:12:49 -0500<BR><B>Subject:</B> Re: [CMake] One last try<BR><BR>On 6/21/2010 3:02 AM, Gerry Weaver wrote:<BR>
&gt; Hello All,<BR>
&gt;<BR>
...<BR>
&gt; 1. Is cmake supposed to support Visual Studio 2008 out of the box?<BR>
&gt; 2. If not, is there support for Visual Studio 2010?<BR>
&gt; 3. If not, is there a patch or fix for either of the above?<BR>
&gt;<BR>
&gt; cmake 2.8.1<BR>
&gt; msvc 2008<BR>
&gt; winxp sp4<BR>
&gt; Nmake Makefiles<BR>
&gt;<BR>
&gt;<BR>
1. Yes, if VS 2008 is installed correctly.<BR>
<BR>
First thing you should try is to build a file WITHOUT CMake:<BR>
<BR>
-----foo.cxx--------<BR>
#include &lt;iostream&gt;<BR>
<BR>
int main()<BR>
{<BR>
   std::cout &lt;&lt; "hello\n";<BR>
   return 0;<BR>
}<BR>
------------------<BR>
<BR>
Use this command line:<BR>
  cl foo.cxx kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib <BR>
ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib<BR>
<BR>
If that works, then CMake should work when run FROM THAT SAME SHELL.<BR>
<BR>
<BR>
If that does not work, then you have not correctly installed the SDK and <BR>
compiler.<BR>
<BR>
Are you using the Express or professional version of VS 2008?<BR>
<BR>
If Express, you need to follow these instructions:<BR>
<A href="http://blogs.msdn.com/b/windowssdk/archive/2008/02/22/using-visual-c-2008-express-with-the-windows-sdk-detailed-version.aspx" target="_blank">http://blogs.msdn.com/b/windowssdk/archive/2008/02/22/using-visual-c-2008-express-with-the-windows-sdk-detailed-version.aspx</A><BR>
<BR>
Make sure you run CMake and your compiler from a shell that has all the <BR>
environment that cl needs to run.<BR>
<BR>
Please post any errors exactly as you see them and include how you setup <BR>
the environment for the compiler.<BR>
<BR>
-Bill<BR>
_______________________________________________<BR>
Powered by www.kitware.com<BR>
<BR>
Visit other Kitware open-source projects at <A href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</A><BR>
<BR>
Please keep messages on-topic and check the CMake FAQ at: <A href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</A><BR>
<BR>
Follow this link to subscribe/unsubscribe:<BR>
<A href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</A><BR>
</BLOCKQUOTE><STYLE>
</STYLE>
</body></html>