How to use nodefaultlib option

How to use nodefaultlib option

Hi,

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
/Link/nodefaultlib:"libc.lib"

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.

Thanks

2 posts / 0 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.
Portrait de Steve Lionel (Intel)

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

Steve

Connectez-vous pour laisser un commentaire.