Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > A Link Error about STL

Reply
Thread Tools

A Link Error about STL

 
 
DDD
Guest
Posts: n/a
 
      03-04-2011
Hi,
Can anyone explain these two error more details?

1>LIBCMTD.lib(stdexcpt.obj) : error LNK2005: “public: virtual
__thiscall std::exception::~exception(void)” (??
1exception@std@@UAE@XZ) already defined in Main.obj
1>LIBCMTD.lib(stdexcpt.obj) : error LNK2005: “public: virtual char
const * __thiscall std::exception::what(void)const ” (?
what@exception@std@@UBEPBDXZ) already defined in Main.obj

Thanks in advance.

 
Reply With Quote
 
 
 
 
Puppet_Sock
Guest
Posts: n/a
 
      03-04-2011
On Mar 4, 10:19*am, DDD <(E-Mail Removed)> wrote:
> Hi,
> Can anyone explain these two error more details?
>
> 1>LIBCMTD.lib(stdexcpt.obj) : error LNK2005: “public: virtual
> __thiscall std::exception::~exception(void)” (??
> 1exception@std@@UAE@XZ) already defined in Main.obj
> 1>LIBCMTD.lib(stdexcpt.obj) : error LNK2005: “public: virtual char
> const * __thiscall std::exception::what(void)const ” (?
> what@exception@std@@UBEPBDXZ) already defined in Main.obj
>
> Thanks in advance.


I'm just taking a wild stab in a dimly lit room.
You seem to have double-included something that
does not have proper double-include guards, or
you have managed somehow to break the guards.

If it was me, I would be "rounding up the usual
suspects." I'm guessing you are using Microsoft's
compiler. Try starting with the flags for stricter
compliance. Try not using the using directive.
Try making a debug copy of your project and removing
half the code and see if it still gives the message.
The usual stuff.
Socks
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: Link Link Link =?Utf-8?B?REw=?= Windows 64bit 0 05-17-2005 12:15 PM
Re: Link Link Link DANGER WILL ROBINSON!!! Kevin Spencer ASP .Net 0 05-17-2005 10:41 AM
Link error with g++ using STL mcole C++ 1 04-14-2005 08:37 AM
strange link error when STL is used sriram C++ 5 03-16-2005 02:56 AM
STL & basic_string<XMLCh> link error =?ISO-8859-15?Q?R=E9mi_Peyronnet?= C++ 0 02-16-2004 10:03 PM



Advertisments