Re: Force the linker to include referenced libs by Ingo
Ingo
Fri Jul 16 07:11:03 CDT 2004
Am Fri, 16 Jul 2004 13:40:45 +0200 schrieb Ingo Nolden
<ingo.noldenSP@Mrecurdyn.org>:
>
> When I build a static lib how can I force the linker to include other
> lib modules or at least the symbols that are used in my libs?
>
> I am specifying the libs that contain the symbols in the "librarian" but
> when I link that resulting lib somewhere else, these symbols are not
> resolved.
Ok, I found the solution. I put the missing symbols in the /INCLUDE of the
linker for the lib.
But now I get the following:
netapi32.lib(NETAPI32.dll) : warning LNK4006: __NULL_IMPORT_DESCRIPTOR
already defined in ws2_32.lib(WS2_32.dll); second definition ignored
rpcrt4.lib(RPCRT4.dll) : warning LNK4006: __NULL_IMPORT_DESCRIPTOR already
defined in ws2_32.lib(WS2_32.dll); second definition ignored
Iphlpapi.lib(iphlpapi.dll) : warning LNK4006: __NULL_IMPORT_DESCRIPTOR
already defined in ws2_32.lib(WS2_32.dll); second definition ignored
can I ignore these warnings? How can I tell the linker what to do. And
what should I best tell.
thanks