Heey,
I have a question about linking an external library to my library.
When i try to link my library and use it, it needs the know about the other (external)library includes etc.
How do i include that external library in my dll so that the user doesn't have to download the external library's
header files etc? I couldn't find anything useful with google.
For example if i'm making a openGL wrapper how do i include it so that the user doesn't have to
download the openGL sdk?
Thanks in advance
Linking external library to my library
I don't understand : Header files are used only for the compilation and linkage process. If you're using a dynamic library, the user only needs to have the dll's somewhere reachable. On modern-day computer, dll's for opengl are likely already installed.
Have you try to build an application test and to run it on another computer ? Did you meet any trouble ? If yes, you'd better tell us.
Have you try to build an application test and to run it on another computer ? Did you meet any trouble ? If yes, you'd better tell us.
Yes, the problem is that if i link my library to an example project i get errors that the headers(in the library) cannot be found.
However when i build my library i don't get any errors.
So what i mean is this :
MyLibHeader.h
[source]
#include <AnotherHeaderFromAnotherLib.h> <--- this cannot be found
....
[/source]
However when i build my library i don't get any errors.
So what i mean is this :
MyLibHeader.h
[source]
#include <AnotherHeaderFromAnotherLib.h> <--- this cannot be found
....
[/source]
Sounds like you're including the third-party header in your headers.
Try reading up on the PIMPL idiom, perhaps.
Try reading up on the PIMPL idiom, perhaps.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement