Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

How to use nodefaultlib option

sumitm
Beginner
1,294 Views
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
0 Kudos
1 Reply
Steven_L_Intel1
Employee
1,294 Views
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
0 Kudos
Reply