Hello Experts

We have a custom SDK for CE5.0, which doesn't have internet support.
If we create a new program with eVC++ and build it, the linker complaints
about the missing wininet.lib.
We don't want to access the internet from our program, so why does the
linker try to locate wininet.lib?
And how can we tell the linker not to search for wininet.lib?

If this isn't possible, which feature do I have to add to my platform, to
include wininet.lib?

TIA
--
Michael Reim
reim AT helmut-fischer DOT de

RE: Linker missing wininet.lib by LucaCalligaris

LucaCalligaris
Tue May 16 09:46:03 CDT 2006

In eVC++ look at Project\Settings menu option; in the 'Link' tab you will
find the static library that your exe links against ( coredll.lib, etc... );
among
those you should find wininet.lib, just remove it.

Maybe in the appliaction wizard you have included some feature which
need wininet.lib?

In your platform you have to add 'Windows Internet Sewrvices' component

"Michael Reim" wrote:

> Hello Experts
>
> We have a custom SDK for CE5.0, which doesn't have internet support.
> If we create a new program with eVC++ and build it, the linker complaints
> about the missing wininet.lib.
> We don't want to access the internet from our program, so why does the
> linker try to locate wininet.lib?
> And how can we tell the linker not to search for wininet.lib?
>
> If this isn't possible, which feature do I have to add to my platform, to
> include wininet.lib?
>
> TIA
> --
> Michael Reim
> reim AT helmut-fischer DOT de
>
>
>

Re: Linker missing wininet.lib by Helge

Helge
Tue May 16 09:50:24 CDT 2006

Hi Michael,

you can detect with dumpbin, how your project gets the lib dependency. The
command

dumpbin /directives *.obj

shows all /DEFAULTLIB:"xxx" directives. If xxx=wininet.lib, you're on the
trace. You can use this command with all libraries that your project uses.
This information can help you to detect, if got this reference by accident.
You have probably only to removed some #include statements.

If you cannot get rid of it you can try to generate a new platform with
environment variable set to SYSGEN_WININET=1.

/Helge



Re: Linker missing wininet.lib by Dan

Dan
Tue May 16 10:13:45 CDT 2006

I'm guessing that you're creating an MFC app with eVC? MFC will always
look for wininet.lib, whether it needs it or not. MFC will complain if
it's not present it compile-time, but it doesn't care if it's not
present at run-time. (IIRC "printing devices" is another compile-time
required component for MFC.)

> If this isn't possible, which feature do I have to add to my platform, to
> include wininet.lib?

Windows Internet Services

-Dan

Michael Reim wrote:
> Hello Experts
>
> We have a custom SDK for CE5.0, which doesn't have internet support.
> If we create a new program with eVC++ and build it, the linker complaints
> about the missing wininet.lib.
> We don't want to access the internet from our program, so why does the
> linker try to locate wininet.lib?
> And how can we tell the linker not to search for wininet.lib?
>
> If this isn't possible, which feature do I have to add to my platform, to
> include wininet.lib?
>
> TIA
> --
> Michael Reim
> reim AT helmut-fischer DOT de


Re: Linker missing wininet.lib by Michael

Michael
Wed May 17 08:25:55 CDT 2006


"Luca Calligaris" <LucaCalligaris@discussions.microsoft.com> schrieb im
Newsbeitrag news:13C3ACE3-54AA-412F-8900-A2A9B6C01C2E@microsoft.com...
> In eVC++ look at Project\Settings menu option; in the 'Link' tab you will
> find the static library that your exe links against ( coredll.lib,
> etc... );
> among
> those you should find wininet.lib, just remove it.

wininet.lib is not mentioned there (I think it is a default lib), but this
time I noticed that there is a box for ignored libs.
I entered wininet.lib there and the problem is solved.

Thank you for your help.

--
Michael Reim
reim AT helmut-fischer DOT de