C++ embedded Lua conflicts with GLFW3

So I want a scripting language for my game and I want to do this with OpenGL. I finished building my Lua engine and then try to run it and I get linker 109 linker errors that point to glfw3.lib. How can I fix this without going to another scripting language?

Well, that would depend on what those linker errors are. Which we don’t know. Because we don’t have your code and you haven’t told us what the errors are.

Alternatively, you could use GLFW as a DLL rather than a static library.

I used the DLL and I only got 15 errors. these are them.

Severity	Code	Description	Project	File	Line	Suppression State	Details
Error	LNK1120	14 unresolved externals	TestComputer3	C:\Users\thund\source\repos\TestComputer3\x64\Debug\TestComputer3.exe	1		
Warning	LNK4098	defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library	TestComputer3	C:\Users\thund\source\repos\TestComputer3\TestComputer3\LINK	1		
Warning	LNK4099	PDB '' was not found with 'glew32s.lib(glew.obj)' or at ''; linking object as if no debug info	TestComputer3	C:\Users\thund\source\repos\TestComputer3\TestComputer3\glew32s.lib(glew.obj)	1		
Error	LNK2019	unresolved external symbol glfwCreateWindow referenced in function "bool __cdecl initOpengl(void)" (?initOpengl@@YA_NXZ)	TestComputer3	C:\Users\thund\source\repos\TestComputer3\TestComputer3\TestComputer3.obj	1		
Error	LNK2019	unresolved external symbol glfwGetPrimaryMonitor referenced in function "bool __cdecl initOpengl(void)" (?initOpengl@@YA_NXZ)	TestComputer3	C:\Users\thund\source\repos\TestComputer3\TestComputer3\TestComputer3.obj	1		
Error	LNK2019	unresolved external symbol glfwGetTime referenced in function main	TestComputer3	C:\Users\thund\source\repos\TestComputer3\TestComputer3\TestComputer3.obj	1		
Error	LNK2019	unresolved external symbol glfwGetVideoMode referenced in function "bool __cdecl initOpengl(void)" (?initOpengl@@YA_NXZ)	TestComputer3	C:\Users\thund\source\repos\TestComputer3\TestComputer3\TestComputer3.obj	1		
Error	LNK2019	unresolved external symbol glfwInit referenced in function "bool __cdecl initOpengl(void)" (?initOpengl@@YA_NXZ)	TestComputer3	C:\Users\thund\source\repos\TestComputer3\TestComputer3\TestComputer3.obj	1		
Error	LNK2019	unresolved external symbol glfwMakeContextCurrent referenced in function "bool __cdecl initOpengl(void)" (?initOpengl@@YA_NXZ)	TestComputer3	C:\Users\thund\source\repos\TestComputer3\TestComputer3\TestComputer3.obj	1		
Error	LNK2019	unresolved external symbol glfwPollEvents referenced in function main	TestComputer3	C:\Users\thund\source\repos\TestComputer3\TestComputer3\TestComputer3.obj	1		
Error	LNK2019	unresolved external symbol glfwSetCharCallback referenced in function "bool __cdecl initOpengl(void)" (?initOpengl@@YA_NXZ)	TestComputer3	C:\Users\thund\source\repos\TestComputer3\TestComputer3\TestComputer3.obj	1		
Error	LNK2019	unresolved external symbol glfwSetKeyCallback referenced in function "bool __cdecl initOpengl(void)" (?initOpengl@@YA_NXZ)	TestComputer3	C:\Users\thund\source\repos\TestComputer3\TestComputer3\TestComputer3.obj	1		
Error	LNK2019	unresolved external symbol glfwSetWindowShouldClose referenced in function "void __cdecl onkey(struct GLFWwindow *,int,int,int,int)" (?onkey@@YAXPEAUGLFWwindow@@HHHH@Z)	TestComputer3	C:\Users\thund\source\repos\TestComputer3\TestComputer3\TestComputer3.obj	1		
Error	LNK2019	unresolved external symbol glfwSwapBuffers referenced in function main	TestComputer3	C:\Users\thund\source\repos\TestComputer3\TestComputer3\TestComputer3.obj	1		
Error	LNK2019	unresolved external symbol glfwTerminate referenced in function "bool __cdecl initOpengl(void)" (?initOpengl@@YA_NXZ)	TestComputer3	C:\Users\thund\source\repos\TestComputer3\TestComputer3\TestComputer3.obj	1		
Error	LNK2019	unresolved external symbol glfwWindowHint referenced in function "bool __cdecl initOpengl(void)" (?initOpengl@@YA_NXZ)	TestComputer3	C:\Users\thund\source\repos\TestComputer3\TestComputer3\TestComputer3.obj	1		
Error	LNK2019	unresolved external symbol glfwWindowShouldClose referenced in function main	TestComputer3	C:\Users\thund\source\repos\TestComputer3\TestComputer3\TestComputer3.obj	1		
Warning	C26495	Variable 'MindHolder::DevAverage' is uninitialized. Always initialize a member variable (type.6).	TestComputer3	C:\Users\thund\source\repos\TestComputer3\TestComputer3\MindHolder.h	67		
Warning	C26495	Variable 'MindHolder::GodAverage' is uninitialized. Always initialize a member variable (type.6).	TestComputer3	C:\Users\thund\source\repos\TestComputer3\TestComputer3\MindHolder.h	67		
Warning	C26495	Variable 'MindHolder::numPeople' is uninitialized. Always initialize a member variable (type.6).	TestComputer3	C:\Users\thund\source\repos\TestComputer3\TestComputer3\MindHolder.h	67		
Warning	C26495	Variable 'MindHolder::trials' is uninitialized. Always initialize a member variable (type.6).	TestComputer3	C:\Users\thund\source\repos\TestComputer3\TestComputer3\MindHolder.h	67