Visual Studio : create a DLL that uses another DLL -


i building dll using visual studio, involves installing following libraries :

  • glm
  • glfw
  • glew

i linked libraries visual studio using following method :

  • specifying additional include directories in project property page
  • specifying additional dependencies in project property page
  • specifying additional library directories in 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

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -