Re: Strange linker warning?
- From: "Russ Keldorph [MS]" <russellk@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 9 Oct 2006 12:58:52 -0700
The warning means that the linker optimized away all references to functions
exported by CEDDK.DLL (via CEDDK.LIB). Note, however, that the linker's
/OPT:REF optimization doesn't affect the normal linker algorithm of symbol
resolution. The optimization kicks in only after all symbols are resolved.
In this case, your link is pulling in something that references CEDDK.
That's why you get the unresolved externals when you remove it. However,
once the /OPT:REF phase runs, it determines that whatever referenced CEDDK
is itself unreferenced. The linker then transitively removes the reference
to CEDDK and you get the LNK4089 warning. You could fix it by specifying
/OPT:NOREF to disable the optimization, but you are probably best off either
ignoring it or rearranging your code. You need to figure out what is being
pulled in that references CEDDK and remove /that/ by separating it into a
different source file. You might find the /VERBOSE:LIB linker option handy
for this purpose.
--
Russ Keldorph
russellk@xxxxxxxxxxxxxxxxxxxx (Remove the 'online.' from my address to reach
me.)
This posting is provided "AS IS" with no warranties, and confers no rights.
OR if you wish to include a script sample in your post please add "Use of
included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm"
"Ole" <ole@xxxxxxxxxx> wrote in message
news:e5BfqS74GHA.3736@xxxxxxxxxxxxxxxxxxxxxxx
"Ulrich Eckhardt" <eckhardt@xxxxxxxxxxxxxx> wrote in message
news:9o8vu3-djo.ln1@xxxxxxxxxxxxxxxxxxxxxxxxx
Did you enter ceddk.dll as linker input? Otherwise, are you really using
functions from there (that would be the typical error, specifying
unnecessary libs)?
No I entered "ceddk.lib" as linker input and I am sure that I use
functions from there - if I remove it I get some "unresolved external
symbol" errors for the functions I'm trying to use (READ_PORT_UCHAR,
READ_PORT_USHORT and READ_PORT_ULONG).
Best regards
Ole
.
- References:
- Strange linker warning?
- From: Ole
- Re: Strange linker warning?
- From: Ulrich Eckhardt
- Re: Strange linker warning?
- From: Ole
- Strange linker warning?
- Prev by Date: Re: MSXML XmlHttpRequest: results are always the same for the same unique URL string
- Next by Date: Re: Go to Low Power until I receive Data from a COM port
- Previous by thread: Re: Strange linker warning?
- Next by thread: BitBlt to static control
- Index(es):
Relevant Pages
|
Loading