On Thu, 19 May 2016 13:45:54 -0700, Valence Crearer <> wrote:
I was using #pragma comment(lib,"packagename")
That was working in Seattle.
now
#pragma comment(lib,"packagename.bpi")
this works in Berlin.
I've been using following macros for years
#ifdef STATIC_BUILD
#define LIBEXT lib
#else
#define LIBEXT bpi
#endif
#define M(x) # x
#define F(x,y) M(x ## . ## y)
#define S(x,y) F(x, y)
#define L(x) lib, S(x, LIBEXT)
and then
#pragma comment(L(vcl))
#pragma comment(L(rtl))
...
#undef L
#undef S
#undef F
#undef M
doing this way allows to centralize logic and possible modifications in one place
--
Vladimir Ulchenko aka vavan
Connect with Us