Padmini Paladugu wrote:
Dear friends:
I am using cygwin and prc tools on windows xp for palmos development.
I am implementing DSA signatures.
To implement DSA one step is implementing SHA algorithm.
I had shared library for shalib.h for SHA algorithm.
When I directly include shalib.h in my c program it is not working.
It seems i need include these shared libraries in makefile.
Can anybody please help me how to inclue shared libraries in makefile.
Any help would be really appreciated.
Thank you very much
Best Regards
Padmini Paladugu

When you do your link step, eg m68k-palmos-ld foo.c bar.c Add the library (whatever it's named, but NOT the header file) to the end of the list: m68k-palmos-ld foo.o bar.o shalib.a

Or if it comes as a .c, .cpp or .cxx file, just compile it like
it's another source file in your program.

Alternatively, if the library is installed to a standard location
where the compiler knows how to find it, you can instead give eg
"-lshalib" and it will search for a file named "libshalib.a" and
include it.


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

Reply via email to