Issues with linking MXFLib.lib with existing DLL???
Page 1 of 1

Author:  enpingado [ Thu Mar 17, 2011 12:10 pm ]
Post subject:  Issues with linking MXFLib.lib with existing DLL???

I am trying to use mxflib with a dll i have that functions as a plug-in for another application.

using c++, mxflib v 1.0.1

It compiles, but i get a lot of errors just like the following one.... In my searches through google i have seen comments saying that inheriting from things like std::string can cause this since it doesnt have a virtual functions....

Does MXFLIB inherit from std::string???

Anyone have any insight or have experienced this before?

I used VS 2003 to compile both the DLL(my_plugin) and the mxflib.lib, both using the /MD for multi threaded dll.

my_plugin error LNK2005: "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl std::operator+<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@0@Z) already defined in my_Plugin.obj

Author:  enpingado [ Thu Mar 17, 2011 3:17 pm ]
Post subject:  Fixed..

I seemed to have fixed my issue.

I triple checked the settings in the mxflib projects and made them all have /MD and did a clean build.

Now everything is on the same page.


Author:  Matt Beard [ Fri Mar 18, 2011 9:03 am ]
Post subject: 


I'm glad that you found a solution to your problem. Thanks for reporting back so that we know it was solved.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group