Error doing a test compile on Windows

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Error doing a test compile on Windows

Rick McGuire
I'm in the process of moving all of my work to a new computer and I'm encountering a puzzling error using cmake for my projects. When I try to set up the project, I'm getting an error when cmake tries to do a test compile using the Visual Studio compiler. According to the error log, the problem was with locating Kernel32.lib. 

I see others on this list have encountered this problem, but none of the solutions suggested have been any help. I've completely uninstalled visual studio and the Windows SDK and reinstalled every thing. I've tried manually adding the directory with the correct Kernel32.lib to the LIBPATH. It still fails. I've done a comparison between my old machine and my new machine and everything looks the same, even the environment variables set by vcvarsall. 

I've run out of ideas here. My old machine was bricked by a Windows update back in January and I was forced to reinstall everything on the machine without encountering any problems like this. Any suggestions?



Powered by

Please keep messages on-topic and check the CMake FAQ at:

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support:
CMake Consulting:
CMake Training Courses:

Visit other Kitware open-source projects at

Follow this link to subscribe/unsubscribe: