I'm trying to compile and link a simple program which uses a third
party DLL. When I try to link I get the error message

"gci.dll : warning LNK4003: invalid library format; library ignored"

I've run tool called Dependency Walker to take analyze the dll and
it returned the information below, along with the warning:

"Warning: At least one module has an unresolved import due to a
missing export function in a delay-load dependent module."

Would this warning be enough to stop the link? Does anyone have any ideas
about what the problem could be?

Thanks, Adam


Dependency Walker: 2.1.3623 (32-bit)
Operating System: Microsoft Windows XP Professional (32-bit)
OS Version: 5.01.2600 Service Pack 1
Processor: x86 Family 15 Model 2 Stepping 7, GenuineIntel, ~2399MHz
Number of Processors: 1
Computer Name: WBOS0099981
User Name: elkinsad
Local Date: Wednesday, February 23, 2005
Local Time: 9:38:07 AM Eastern Standard Time (GMT-05:00)
OS Language: 0x0409: English (United States)
Memory Load: 55%
Physical Memory Total: 1,072,680,960 (1023 MB)
Physical Memory Used: 599,498,752
Physical Memory Free: 473,182,208
Page File Memory Total: 2,581,606,400
Page File Memory Used: 758,525,952
Page File Memory Free: 1,823,080,448
Virtual Memory Total: 2,147,352,576
Virtual Memory Used: 69,169,152
Virtual Memory Free: 2,078,183,424
Page Size: 0x00001000 (4,096)
Allocation Granularity: 0x00010000 (65,536)
Min. App. Address: 0x00010000 (65,536)
Max. App. Address: 0x7FFEFFFF (2,147,418,111)

Re: LNK4003: invalid library format -- why? by Jeff

Jeff
Wed Feb 23 09:02:34 CST 2005

"Adam / Boston" <Adam / Boston@discussions.microsoft.com> wrote in message
news:5BD97093-6C29-4CF2-9E39-9D2C83D25FB4@microsoft.com...
> I'm trying to compile and link a simple program which uses a third
> party DLL. When I try to link I get the error message
>
> "gci.dll : warning LNK4003: invalid library format; library ignored"

Are you linking against the dll itself? You should be using its import
library (gci.lib).
--
Jeff Partch [VC++ MVP]