List:MySQL++« Previous MessageNext Message »
From:Dale Stewart Date:September 18 2007 3:34pm
Subject:RE: vector error ( LNK2005)
View as plain text  
I think that the error is showing up in the application code that is
trying to use the library, probably because it is linking with the
static runtime library when it should be using the DLL.

std::basic_string<char> and std::basic_string<_wchar_t> are already
fully instantiated in the C/C++ runtime library DLL(s).  They cannot be
redefined by some other code that is linking with the library.  Because
std::string crosses the MySQL++ library interface boundary, the same
implementation of these class template instantiations has to be used on
both sides of that boundary.

-----Original Message-----
From: Warren Young [mailto:mysqlpp@stripped] 
Sent: Monday, September 17, 2007 5:48 PM
To: MySQL++ Mailing List
Subject: Re: vector error ( LNK2005)

Dale Stewart wrote:
> I think that the cause of this error is due to a mismatch in the C
> runtime library 

I agree, but also:

>
(??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV
> 01@@Z) already defined in mysqlpp.lib(mysqlpp.dll) StructTables.obj 

...how in the world did a "StructTables.obj" get into mysqlpp.dll?  If 
you're doing something weird with the library, it's no wonder you're 
getting weird errors.

-- 
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsub=1
m



Thread
vector error ( LNK2005)Mandy Llanes17 Sep
RE: vector error ( LNK2005)Dale Stewart17 Sep
  • Re: vector error ( LNK2005)Warren Young18 Sep
    • RE: vector error ( LNK2005)Nils Woetzel18 Sep
      • Re: vector error ( LNK2005)Warren Young18 Sep
RE: vector error ( LNK2005)Dale Stewart18 Sep