How to use nodefaultlib option

How to use nodefaultlib option


In my quickwin application, I am getting a warning
LINK : warning LNK4098: defaultlib "libc.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
I went to project settings and added the following line

but get an error LINK : fatal error LNK1181: cannot open input file ".Debug3Dtemp.obj"
Error executing link.exe.

My application uses Array visualizer and opengl.

I could not find any documentation as to where to add the /nodefaultlib option whether it should be added as /link/ or without the / or without the link. Some documentation is there about running from the command line but I do not know who or why or when people run anything from the command line. Obviously I am a novice at this and some help to educate this novice would be greatly appreciated.


2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Ignore the suggestion to use /nodefaultlib - that's the wrong solution. See Do You Suffer from the Heartbreak of MCLS? in the Visual Fortran Newsletter. If you have version 6.6, the options are somewhat different, but the idea is the same.


Steve - Intel Developer Support

Leave a Comment

Please sign in to add a comment. Not a member? Join today