[Cmake] CMake is unable to compile simple test program
William A. Hoffman
billlist at nycap.rr.com
Tue, 27 Jan 2004 14:42:29 -0500
When using nmake, you must make sure that vcvars32.bat has been run in the shell
before you run CMakeSetup. Or when you installed visual studio, you selected the
option to put visual studio in your path. CMake make sure the compiler works
before generating the makefiles.
-Bill
At 04:34 AM 1/27/2004, Neil Mackie wrote:
>I have only just started using CMake. I have been lurking on the mailing list for a while to see if this is a FAQ (it is a very basic question) but the topics are far beyond what I'm trying to do.
>
>I have a CMakeLists.txt file, and I have run CMake (1.8 patch 2). I have set paths for "Where is the source code" and "Where to build the binaries". I have set "Build for" to nmake (I have a Unix background but am now developing on windows and would like to be able to do builds without running Microsoft Visual Studio). When I press the "configure" button I get the message The C compiler "cl" is not able to compile a simple test program
> ...
> LINK fatal error LNK1104 cannot open file kernel32.lib
>
>I take this to mean that when CMake is doing its test build it fails because it does not have the correct path to the library kernel32.lib.
>Looking at the advanced cache values I see CMake has the variable CMAKE_STANDARD_LIBRARIES which has a value that includes kernel32.lib, but I cannot see any variable that has a value that includes the path to that library.
>
>That is as far as I have got. Does anyone have suggestions as to what I can try next or further investigations I can do? I can post the full diagnostics if it would help.
>
>Regards,
>Neil (J Mackie).
>
>
>***********************************************************************************
>Ofcom is the regulator for the UK communications industry, with responsibilities across television, radio, telecommunications and wireless communications services. Ofcom exists to further the interests of citizen-consumers as the communications industries enter the digital age.
>
>Ofcom has taken over the responsibilities and assumed the powers of the five former regulators it has replaced - the Broadcasting Standards Commission, the Independent Television Commission, Oftel, the Radio Authority and the Radiocommunications Agency.
>
>This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
>
>If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses.
>
>Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Ofcom.
>***********************************************************************************
>
>_______________________________________________
>Cmake mailing list
>Cmake at www.cmake.org
>http://www.cmake.org/mailman/listinfo/cmake