Visual Studio : create a DLL that uses another DLL -
i building dll using visual studio, involves installing following libraries :
glmglfwglew
i linked libraries visual studio using following method :
- specifying
additional include directoriesin project property page - specifying
additional dependenciesin project property page - specifying
additional library directoriesin project property page
of course glm header library, means required specify additional include directories glm. , dll built fine.
but real problem occurs when using library in test project. linked test project library using method mentioned above, when tried build test project, produces following results :
cannot open include file <glfw/glfw3.h> and same goes glew. seems these libraries not found when library being used test project. how can fix this? highly appreciated.
set additional include directories correctly projects. compiler doesn't magically inherit settings project happens have it's output linked project. have provide correct include path source file sees. spare having hardcoded paths include directories use property sheet common both projects. or tackle problem in code , make use of pimpl idiom (eventually simple e.g. forward declaring gl types , using unique_ptr them in public classes) headers of project never expose of external include files.
Comments
Post a Comment