I am getting linker errors when trying to build (there are a bunch... here is one such):
error LNK2005: "public: int __cdecl std::ios_base::rdstate(void)const " (?rdstate@ios_base@std@@QEBAHXZ) already defined in msvcprt.lib(MSVCP90.dll)
I have a C project:
I have a C++ project:
I have a C++/CLI project that relies on the two projects above:
These are built using the Visual 2010, but with the v3.5 toolset (so using 9.0).
Most solutions I've seen suggest that the Runtime library settings are not in sync. This is not the case here, they're all Multi-threaded DLL. They're all built in Release x64.
Does anything jump out with these project settings? Are there any more relevant settings I could share?
I'd suggest to use the same setting everywhere and not mixing (static library and dll projects). If I remember well I ran into the same issue.