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 帖子 / 0 全新
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项

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 - Intel Developer Support

发表评论

登录添加评论。还不是成员?立即加入