Re: ws2.lib size



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

.



Relevant Pages

  • Re: emulator
    ... I'm pretty sure the emulator can run on its own. ... why do you think VPC is part of your ... need to use Platform Builder to build a custom version of Windows CE. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Linker Error
    ... You're not building the same set of things as the build system in Platform ... that is the code inside that DLL, not an import library for other DLLs to ... HID DLLs that are built by platform builder are linked. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: emulator
    ... some modern emulator that can be used inside ... If you're trying to create a virtual machine with Windows CE as the ... need to use Platform Builder to build a custom version of Windows CE. ...
    (microsoft.public.windowsce.embedded.vc)
  • RE: WinCE 6.0 R2 and Vista Ultimate
    ... After about a week of "tinkering", I have been successful with Platform ... Builder and I will write about my results here. ... Visual Studio 2005 did install with a warning that there were known ... and all registry entries are placed into ...
    (microsoft.public.windowsce.platbuilder)
  • Re: WinCE 6.0 BSP (CEPC) for Virtual PC
    ... You can do POC code with the emulator - again, just like the VPC. ... be targeting say ARM architecture hardware, one could argue that emulator is ... CE platform development is not easy (anyone who tells you otherwise, ...
    (microsoft.public.windowsce.embedded)