My game project is split up into three parts:
- Core (lib)
- Editor (exe)
- Game (exe)
I'm using OpenGL in both my Core and Game parts, but as soon as I try to call an OpenGL function in my Core library the application crashes. I assume this is because the static library is not being linked with OpenGL. The build process goes like this:
# core library g++ -c ... -std=c++0x -g -o ... -I. -I. ar rcus libCore.a ... # game exe g++ -o Game ... -L. -L../Core/Debug/ -lCore -lglew32 -lglfw -lopengl32
... stands for the various files. How can I link OpenGL with my static library?