M
Markus Dehmann
What to do if an external library is header-files-only (but you have
to use it), and you get lots of linker errors?
You will necessarily get linker errors "multiple definition of ..." if
you try to separate interface from implementation in your own code.
The external-library symbols will first be defined in one .o file and
then again in the next one that includes the same implementation-heavy
header.
Is there any way to avoid the linker errors, or do I have to give up
and also put everything in header files myself (resulting in eternal
compilation times etc)?
Thanks!
Markus
to use it), and you get lots of linker errors?
You will necessarily get linker errors "multiple definition of ..." if
you try to separate interface from implementation in your own code.
The external-library symbols will first be defined in one .o file and
then again in the next one that includes the same implementation-heavy
header.
Is there any way to avoid the linker errors, or do I have to give up
and also put everything in header files myself (resulting in eternal
compilation times etc)?
Thanks!
Markus