www.digitalmars.com         C & C++   DMDScript  

c++.windows.32-bits - Re: import library generation

reply "V. Krishnakumar" <lvimala eth.net> writes:
I found the complete list of exports in the LCC-Win32 distribution and now
am able to build the import libraries by myself. But I still have problems.

1.  The dlls on my system have no associated symbols so I get unreferenced
symbol errors when linking. Do I need the ordinals to link ?

2. winspool is actually winspool.drv but lcc's export file marks it as
winspool.dll. So I renamed it to winspool.dll and generated the implib. But
when the application is run, I get the following error: "_ClosePrinter 4
unresolved" etc.

help appreciated.

-Krish
Apr 19 2002
parent "Walter" <walter digitalmars.com> writes:
"V. Krishnakumar" <lvimala eth.net> wrote in message
news:a9pmuv$6vk$1 digitaldaemon.com...
 I found the complete list of exports in the LCC-Win32 distribution and now
 am able to build the import libraries by myself. But I still have

 1.  The dlls on my system have no associated symbols so I get unreferenced
 symbol errors when linking. Do I need the ordinals to link ?

The linker doesn't read the dlls, so that can't be the problem. The problem is the symbols in your library don't match the references the compiler generates. You can try obj2asm on the .obj and .lib files and see what the names are.
 2. winspool is actually winspool.drv but lcc's export file marks it as
 winspool.dll. So I renamed it to winspool.dll and generated the implib.

 when the application is run, I get the following error: "_ClosePrinter 4
 unresolved" etc.
 help appreciated.

Do a grep on the .dll and see what symbols are in there.
Apr 19 2002