Linking my .lin to another .lib.

Hey guys:

Please let me show you the estructure of my project:

+GLFW(.lib)

+GLEW(.lib)

+Engine(.lib)
-Link with GLFW
-Link with GLEW

+App(.exe)
-Link with Engine

As you see I am manually building glfw and glew (and it is working) but I am having problem when I try to make my own lib (my engine lib).

I can compile it perfectly but when I make and app (and exe) linked to my engine (which is linked at the same time with glfw/flew), I get errors from inside the engine code.

For example I am getting this error WHEN I COMPILE THE APP , not the engine lib itself:

…\include\core/Core.h(8): fatal error C1083: Cannot open include file: ‘GLFW/glfw3.h’: No such file or directory

Any ideas on that?

See you :smiley:

First of all, this has absolutely nothing to do with OpenGL® and is a very basic question related to the programming language & toolchain you are using.

Second, your Core.h file (I assume this is from your engine.lib) is including the glfw3.h header. The include path is set propperly when you build your engine.lib,
but it is not set propperly when you build your app.exe.

Please consult an in depth tutorial on the programming language you are using (I assume either C or C++).