Greetings all,
I'm trying to build a precompiled header for a project I'm involved in
that exports lots of classes to a dll. To illustrate my problem
consider the following:
__declspec(dllexport) class A_CLASS {
public:
void A_FUNCTION(); // defined in A_CLASS.cpp - Functions
correctly
void B_FUNCTION();
void C_FUNCTION();
void D_FUNCTION(){Some code here} // Compiles, but cannot be
found by client app during linkage
}
void A_CLASS::B_FUNCTION() {Some code here} // Error - Code in precomp
header (expected error)
inline void A_CLASS::C_FUNCTION() {Some code here} // Functions
correctly
My problem revolves around D_FUNCTION. As it says, the compiler
doesn't complain durin the building of the dll, but when an
application then tries to use that dll, the linker can't find the
function. I'd rather not have to take all those functions out and
explicity inline them. Is there something I'm not understanding here,
or is there a bug? (I'm using CW for Windows Pro 6.1 - a bit
long-toothed I know, but upgrading simply isn't an option)


|