views:

1116

answers:

1

Hi

i hav solution explorer contains 2 proj.for one project i enable /clr with /mdd. for parent

project i hav /mtd and no clr support.when i compiling this i am getting two linker errors

including the below one

Link warning link 4098:Default lib can conflict with other lib use /NODEFAULTLIBS library

so my question how to use /NODEFAULTLIBS in compilation

Thanks in advance.

+4  A: 

First you need to work out which library is causing the conflict, if you can. Does the link warning tell you anything?

Then you need to open the property pages for this project, and go to Linker -> Command Line. In the 'Additional Options' area, type:

/NODEFAULTLIB:xxx.lib

where xxx.lib is the conflicting library. However, if you couldn't work out which library it is, try just:

/NODEFAULTLIB

Charles Anderson