Trouble accessing includes from another project / building with includes in another project #1919
-
Hey, I have a workspace containing two projects: Engine (ConsoleApp) and Renderer (SharedLib) (+ GLFW and Glad) and I'm having trouble including a library inside the Renderer project and including the Renderer itself in the engine (If I try to compile just the Renderer I get no errors, but when I include the Renderer inside Engine I get a "cannot open source file" error). Project structure:
I can access and call stuff located inside the Renderer, my issues arise whenever I try to do so and add ie. a GLFW #include somewhere in the Renderer. I have taken the liberty of creating a repository that recreates my problem. Note that if you plan on installing and compiling it yourself you will have to clone the repository and its submodules (use --recursive). Thanks in advance 😄. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Are you exposing GLFW in a header file in Renderer? If so, then any dependencies of Renderer need to have the GLFW include directories. |
Beta Was this translation helpful? Give feedback.
Are you exposing GLFW in a header file in Renderer? If so, then any dependencies of Renderer need to have the GLFW include directories.