From: "AnilkumarB" <[EMAIL PROTECTED]>
>     I had written my first static libraray in palm OS.I am trying to use
it
> in the application.
>
> 1.  I hav included the starter.lib in the application's libraries section.
>
OK, standard for an app, nothing to do with your static library.

> 2.  I refered the lib src folder in the userpath section , i even included
> the .h file in the palm application i am using.
>
Close, but it's generally better if the source for a library isn't visible
from the project that's using it.  Including the .h file is correct.

> 3.  But still i am getting undefined function link error while i am
> executing the application.
>
You're missing:
- compile the static library project to create the .lib file.  This contains
the compiled source for your functions in a form that's ready for
linking.
- add the .lib file to any project that will use it.  The linker connects
the function declarations in the header file with the compiled definitions
in the library (or is it the other way around?).

> 4.  My another doubt is to know if it is possible to export a class from
any
> static or a shared library to an application.I got some 15 of classes and
i
> want to keep all of them  in a static library and expose them to the
> application it is used in.
> How can i proceed for the above requirement??
>
I've not done this under Palm OS so I'll leave it for someone else to
comment on.

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