Is it possible to link to glfw3.lib from command line? If so, how?
Workstation machine: Surface Pro 4 x64
Compiler: cl.exe x64
GLFW Download: 32-bit Windows binaries
My build file:
1 2 3 4 5 | pushd ..\..\build cl -nologo -IW:\glplay\glplay\Dependencies\GLFW\include ..\glplay\code\main.cpp /link /LIBPATH:W:\glplay\glplay\Dependencies\GLFW\lib-vc2015 glfw3.lib opengl32.lib user32.lib gdi32.lib popd |
Error code:
1 2 3 4 5 6 7 8 | main.obj : error LNK2019: unresolved external symbol glfwInit referenced in function main main.obj : error LNK2019: unresolved external symbol glfwTerminate referenced in function main main.obj : error LNK2019: unresolved external symbol glfwCreateWindow referenced in function main main.obj : error LNK2019: unresolved external symbol glfwWindowShouldClose referenced in function main main.obj : error LNK2019: unresolved external symbol glfwPollEvents referenced in function main main.obj : error LNK2019: unresolved external symbol glfwMakeContextCurrent referenced in function main main.obj : error LNK2019: unresolved external symbol glfwSwapBuffers referenced in function main glfw3.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64' |