编译时候发现如下警告,虽然问题不大,但是出现警告多少不舒服,于是搜索了一下。
Linking...
LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library
以下是MSDN上的,具体连接http://msdn.microsoft.com/en-us/library/6wtdswk0%28VS.71%29.aspx
defaultlib 'library ' conflicts with use of other libs; use /NODEFAULTLIB:library
You are trying to link with incompatible libraries.
Note The run-time libraries now contain directives to prevent mixing different types. You will receive this warning if you try to use different types or debug and non-debug versions of the run-time library in the same program. For example, if you compiled one file to use one kind of run-time library