At 12:23 PM 8/28/2002 -0700, you wrote:
>Hi,
>    I'm trying to call some function (function name is Square) from
>Static Library inside Shared library but it gives error at link time.
>It says, " 'Square' referenced from 'TestLib_UserFunction' is
>undefined".
>
>I have included function prototype from the static library and also
>added Static Library (TestStaticLib.lib) file in the shared library
>file.


Is your static library written in C or C++?  Do a "Disassemble" on it in 
the IDE to find out all the exported function names the library has.  If 
the languages are mixed, you'll need to do extern "C" on the functions in 
your static library to be able to link to C shared library code.

-- 
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com



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

Reply via email to