Unresolved externals in C++ when using vectors and find

前端 未结 4 1533
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-30 12:33

I have tried this code in a totally separate project, and it works fine (the only difference being that the project that is not working is being exported as a DLL). Here is

4条回答
  •  南方客
    南方客 (楼主)
    2020-11-30 13:11

    The problem in my case was a Debug configuration with Runtime Library set to Multi-threaded DLL. The fix was to change it to Multi-threaded Debug DLL. The error is gone. Removing _DEBUG macro was also a kind of workaround, by I guess it's not a good idea because you end up with debug build linked to non-debug standard library.

提交回复
热议问题