freeMXF.org

Open discussion about freeMXF.org tools and MXF in general
It is currently Fri Sep 21, 2018 10:25 pm
Board index » MXF Categories » freeMXF.org Tools



Post new topic Reply to topic  [ 3 posts ] 
Author
Search for:
Message

Offline
Board User

Joined: Wed Mar 16, 2011 9:18 pm
Posts: 6

Post Posted: Thu Mar 17, 2011 12:10 pm 
Top  
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.

Code:
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

 Profile  

Offline
Board User

Joined: Wed Mar 16, 2011 9:18 pm
Posts: 6

Post Posted: Thu Mar 17, 2011 3:17 pm 
Top  
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.

Thanks

 Profile  

Offline
Insider

Joined: Thu Apr 15, 2004 10:39 am
Posts: 198
Location: Scotland

Post Posted: Fri Mar 18, 2011 9:03 am 
Top  
Hi,

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

 Profile WWW  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

Jump to:  


Who is online

Users browsing this forum: No registered users and 4 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group :: Style based on FI Subice by phpBBservice.nl :: All times are UTC