Re: ws2.lib size
- From: Ulrich Eckhardt <eckhardt@xxxxxxxxxxxxxx>
- Date: Tue, 11 Mar 2008 16:05:35 +0100
antoniocgg@xxxxxxxxx wrote:
I'm trying to build an x86 application with the "gethostname"
function, using the Visual Studio 2005 with Windows CE 6.0 Platform
Builder.
The build didn't succeed, except on the situations below
Platform: ARM (emulator) and using the ws2.lib (~300kb)
That is a lot, which is weird. Maybe this is a special ws2.lib that allows
the emulator to connect to the host network.
Platform: x86 and using the ws2.lib generated by an old SDK, but the
lib is just ~17Kb.
This is rather what I'd expect, as it's just a set of stubs for a DLL.
When I try to build it using the ws2.lib (~300kb) included in the
Platform Builder, I get the following error:
error LNK2019: unresolved external symbol __imp__gethostname
referenced in function _WinMain
This is the stub for the DLL that's missing, it should be provided by
ws2.lib as documented in the MSDN.
I'm afraid of application failing or lack of functionality due to the
the use of that "shrinked" library.
Should I keep using this?
Yes, normally you should link against the stubs, which at runtime load the
DLL.
Uli
--
Sator Laser GmbH
Geschäftsführer: Michael Wöhrmann, Amtsgericht Hamburg HR B62 932
.
- References:
- ws2.lib size
- From: antoniocgg
- ws2.lib size
- Prev by Date: How to make RIL driver - use enfora.cpp as starting point
- Next by Date: Re: Arabic and other fonts support
- Previous by thread: ws2.lib size
- Next by thread: Arabic and other fonts support
- Index(es):
Relevant Pages
|