Is there a way to build static library in PalmOS6.0 . I would like to create a library that would statically link with my application. What would be the extension of that library.Would it be *.lib. I will have to specify this in the makefile, right.
A static library, using the PalmSource toolset (pacc), will look like <LibraryName>.a. To make one of these, you need to use the palib tool to package a collection of object (.o) files into a library (.a).
usage: palib [-h[elp]] [-ver | -V] [-c[reate]] [-a[dd]] [-d[elete]] [-r[eplace]] [-x | -extract] [-t[oc]] [-s[ymtab]] [-e[ntries]] [-via <file>] <library> [<fileList>] option definitions: -h[elp] Print a summary of help. -V Display version information. -c[reate] Creates a new, empty library, overwriting if necessary. -a[dd] Add files to a library. -d[elete] Delete files from a library. -r[eplace] Replace/add files in a library. -x | -extract Extract files from a library. -t[oc] Output the table of contents of the library. -s[ymtab] Output a table of all symbols. -e[ntries] Output a list of entry points defined in a library. -via <file> Read more options from an external file. <library> Name of library on which to work. <fileList> List of files on which to perform actions.
Object files are created using the -c (compile only) switch to pacc.
From within Palm OS Developer Suite 0.1.1, there's no direct support for making static libraries. Support for projects that create static libraries is implemented in the PODS 1.0 release coming this summer.
-- Ben Combee, DTS technical lead, PalmSource, Inc. Read "Combee on Palm OS" at http://palmos.combee.net/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
