Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Codewarrior Windows > precomp header ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 269 of 318
Post > Topic >>

precomp header and implied inline functions

by fraggle@[EMAIL PROTECTED] (Fraggle) Apr 9, 2005 at 07:57 AM

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)




 2 Posts in Topic:
precomp header and implied inline functions
fraggle@[EMAIL PROTECTED]  2005-04-09 07:57:43 
Re: precomp header and implied inline functions
fraggle@[EMAIL PROTECTED]  2005-04-12 10:54:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon May 12 17:30:25 CDT 2008.