From: "AnilkumarB" <[EMAIL PROTECTED]>
> No,Actually my library's name is "starter.lib" its not a standard for app
.
>
Hah, serves me right for not reading more carefully.

> StarterLibMain is the only function in the starterLibrary.I have just
called
> this function in a button event handler
> This is the error i am getting at link time.
>
> Link Error   : MainForm.cpp: 'StarterLibMain()' referenced from
> 'CMainForm::OnClearText(EventType*,unsigned char&)' is undefined.
>
Hmm, if you're programming in C++ then any C functions will
get name-mangled, making them unrecognisable.  If the basic
library source module is a .c perhaps this is what's causing the
confusion.

There was some advice from Ben several weeks ago about
forcing C++ compilation, or you need to use the standard
    extern "C" {
    }
around the C function prototypes in your header to prevent
the C++ compiler from name-mangling them.

Let's hope that this advice is more useful.

Chris Tutty


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to