LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library

后端 未结 4 1533
感情败类
感情败类 2021-02-05 12:06

When I try to build my sources linking with libeay32.lib. I have built this locally from OpenSSL sources. I encountered the above warning \"LINK : warning LNK4098: defaultlib \'

4条回答
  •  眼角桃花
    2021-02-05 12:13

    The Visual Studio compiler have two modes when building: Multi-threaded and not multi-threaded. You set the mode when you create a project, and can change it later in project settings.

    The problem here is that these two modes are not compatible. If you mix multi-thrading and non-multi-threading libraries then you will get errors like those you have. Either recompile the other library with the other mode, or change the mode of your project to match that of the library.

提交回复
热议问题