开发者

Multiply defined symbols found?

开发者 https://www.devze.com 2023-03-07 16:36 出处:网络
I made my own library and compiled it as a static library in MSVC using the MD multithreaded DLL runtime. I then compiled my application and included myLib.lib and when I do I get tons of multiply def

I made my own library and compiled it as a static library in MSVC using the MD multithreaded DLL runtime. I then compiled my application and included myLib.lib and when I do I get tons of multiply defined symbols relatin开发者_运维知识库g to MSVCRTLIB, what am I doing wrong?

Thanks


The application and all libraries must be compiled with the same settings. Make sure they all use the MD option.

0

精彩评论

暂无评论...
验证码 换一张
取 消