Hello guys.
Actually, in my codeblocks workspace, i have 2 projects :
1 - project for creating a DLL
2 - project for executable linked against the DLL
In my DLL project, i need to link and compile some static libraries in the DLL.
In the "Linkers Settings" in build options of my DLL project, i add in "Other Linker Options" :
-Wl,--whole-archive
my/path/libproj1.a
-Wl,--no-whole-archive
Until now, no problem, my DLL compiles correctly. ( .dll + .a ).
In my main project ( executable linked against the DLL ), i configure the linker ( with the .a of my DLL project ) and i export the DLL project file header.
But when i compile my main project, i have an error :
"fatal error: path/file.h: No such file or directory"
because in the DLL project file header, i have the include of static libraries.
How can i fix that ? What I forgot ?
Thx in advance for your help.
Regards,
Rei