News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Conditional static library link

Started by drev, April 07, 2009, 01:05:04 PM

Previous topic - Next topic

drev

Hi,

I have a projet with some features that can be enabled/disabled using the preprocessor



#define FOO  <-- passed with -DFOO or in #defines textarea at the build option menu

#ifdef FOO
#include <foo.h>
#endif


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 !