Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LINK : warning LNK4098

Status
Not open for further replies.

sweep123

Technical User
May 1, 2003
185
GB
I have buld a static library and also a test program to check out the library.

However when I try and build my test program I get the warning:

: defaultlib 'LIBCD' conflicts with use of other libs; use /NODEFAULTLIB:library

I have place the line: /NODEFAULTLIB:WAPI_AIM.lib in the Ignore Specific Library option of the Linker properties, but still get the warning.

I would like to clear this warning.

Any suggestions?
 
may be your static lib is a Debug Compile while your test program in Release Compile or lib->Release, and your test program->Debug.
 
don't use extension .lib

Ion Filipski
1c.bmp
 
I did try the above, but still the error.

I did change the build to be 'release' but now get two warning:

LINK : warning LNK4098: defaultlib 'LIBC' conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4089: all references to 'OLEAUT32.dll' discarded by /OPT:REF
 
When you change Debug to Release you should set all your manual settings again

Ion Filipski
1c.bmp
 
Ion Filipski, can you explain what manual setings need setting, as had to change some directory uncludes to compile and link OK.
 
No, still get the warning.

Everything I have tried so far (from message board and Help pages) I still have the warning!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top