Hi,
I'm working on a static library which compiles OK, but when I link it
to the program I receive several errors from compiler indicating
errors from static lib.
Compiles OK:
lcc ebicom.c -ansic -unused -g5
lcclib /out:ebicom.lib ebicom.obj oleaut32.lib ole32.lib uuid.lib
small app linked with ebicom.lib output:
ebicom.obj .text: undefined reference to '_CoTaskMemAlloc@4'
ebicom.obj .text: undefined reference to '_CoTaskMemFree@4'
ebicom.obj .text: undefined reference to '_CLSIDFromProgID@8'
ebicom.obj .text: undefined reference to '_IID_IUnknown'
ebicom.obj .text: undefined reference to '_CoCreateInstance@20'
sighandler.obj .text: undefined reference to '__debuglevel'
Please help me and tell me what I do wrong or point me to correct way
of creating static libs.
Do I have to put libmain in static lib like in dll's?
Do I have to put __declspec(dllexport) for functions that I wish to
use in
other programs?
Note that I din't put libmain or main in my static lib.
Best regards,
Ljubisa
|
|
0
|
|
|
|
Reply
|
ljube
|
4/11/2004 7:33:50 PM |
|