User forums > Using Code::Blocks
Conditional static library link
(1/1)
drev:
Hi,
I have a projet with some features that can be enabled/disabled using the preprocessor
--- Code: ---
#define FOO <-- passed with -DFOO or in #defines textarea at the build option menu
#ifdef FOO
#include <foo.h>
#endif
--- End code ---
Question : how does it works for link with a static library (assumed -lfoo) if FOO is defined ?
I think a #pragma link is used in visual studio but I am not sure it is supported/safe with gcc C99.
Jenna:
Read the gcc manual or ask in an appropriate forum !!
This forum is dedicated to C::B related questions only !
Topic locked !
Navigation
[0] Message Index
Go to full version