I'm using the precompiled GLFW libraries in a Visual Studio 2012 project - the
compiler Version is 11.0.50727.1 RTMREL
First of all, I'd like to ask whether it is normal that i can use the
libraries (which have been created with an older compiler) in the DEBUG
mode, and I only get the following error when building my project in RELEASE
Error 1 error C1047: The object or library file 'D:\dev\Libraries\lib\GLFW.lib' was created with an older compiler than other objects; rebuild old objects and libraries
And my actual question is: How can I compile the library with MSVC 110?
I've tried to just open the solution GLFW.sln under /support/msvc100 and
convert that to MSVC 110, but when I try to build, I get a lot of errors. What
should I do?
These are some of the errors:
Error 2 error MSB6003: The specified task executable "link.exe" could not be run. The process cannot access the file 'D:\dev\GLFW\glfw-2.7.6\glfw-2.7.6\support\msvc100\Debug\link.read.1.tlog' because it is being used by another process.
Error 3 error FTK1011: could not create the new file tracking log file: D:\dev\GLFW\glfw-2.7.6\glfw-2.7.6\support\msvc100\Debug\link.write.1.tlog. The file exists.
Error 7 error MSB6003: The specified task executable "CL.exe" could not be run. The process cannot access the file 'D:\dev\GLFW\glfw-2.7.6\glfw-2.7.6\support\msvc100\Debug\cl.read.1.tlog' because it is being used by another process.
Several people have reported issues with GLFW on VC++ 2012. Rather than trying
to convert anything, I built new project files for it that will be included in
GLFW 2.7.7. You can find them in the trunk of the Subversion repository.
Please let me know if they work for you.
I downloaded the whole trunk file, but still got many errors when compiled
with VS 2012. such as:
Error 5 error C2471: cannot update program database 'f:\libraries\trunk\support\msvc110\debug\vc110.pdb' e:\microsoft visual studio 11.0\vc\include\stdlib.h 1 1 mipmaps
Error 6 error C2471: cannot update program database 'f:\libraries\trunk\support\msvc110\debug\vc110.pdb' e:\microsoft visual studio 11.0\vc\include\crtdefs.h 1 1 mipmaps
Error 7 error C2471: cannot update program database 'f:\libraries\trunk\support\msvc110\debug\vc110.pdb' e:\microsoft visual studio 11.0\vc\include\limits.h 1 1 mipmaps
Thanks, the VC++ 2012 Version in GLFW 2.7.7 works for me.
Meanwhile I was able to compile it with VC++ 2012. It works if you do "Project only" -> "Rebuild only GLFWDLL"
For those who are interested in building it and have the same problems: There's a problem with the intermediate directories - conflicting tlog files, like described here: http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/caffd893-3d5c-495e-908f-e763e0824e4e
Are you saying there are conflicting intermediate directories for the 2.7.7 project files? I believe I went through and updated every project file.