Bug while linking 2.0.1 in VC Express 2005

Hi,

Debug version compiles / runs fine, but when I build the Release version it comes up with the following while linking:

LIBCMT.lib(stdexcpt.obj) : error LNK2005: "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ) already defined in TestEntries.obj
LIBCMT.lib(stdexcpt.obj) : error LNK2005: "public: virtual char const * __thiscall std::exception::what(void)const " (?what@exception@std@@UBEPBDXZ) already defined in TestEntries.obj
TestBed/Release\TestBed.exe : fatal error LNK1169: one or more multiply defined symbols found

Any ideas?

thanks

Nalin
What did you change? Try the latest from SVN.
I changed nothing. Just to check I started from scratch again and unzipped the archive and built afresh with the same result.

The version I downloaded was from here
http://sourceforge.net/project/platform ... _id=205387

Apologies for my ignorance but where/how do I get the SVN version you mentioned?

Nalin
Get TortoiseSVN then connect to https://box2d.svn.sourceforge.net
Thanks Erin.

I managed to get the latest archive at https://box2d.svn.sourceforge.net/svnroot/box2d rather than the location you specified.

However I still get the same problem.

I think this the same issue as this thread:
viewtopic.php?f=7&t=932&hilit=exception

Delving a little further on google came up with this which highlights this as a generic issue..
http://forums.msdn.microsoft.com/en-US/ ... d4b3c3807/

I'll explore a little and see if I can find how to get around it. Any advice welcome.

Nalin
I'm having the same problems as Nalin and nimodo too. Tried a few different things to try and get it to work but can't find what the problem is at all.

Also using
Microsoft Visual C++ 2005
Version 8.0.50727.42 (RTM.050727-4200)
Found out what the problem was! 😎 The project will not build correctly in Visual Studio 2005 unless you have Service Pack 1 installed.
You can download them here:
VS 2005 Professional Edition Service Pack 1 (431MB! 😮 )
VS 2005 Express Edition Service Pack 1 (149MB)

However installing this Service Pack isn't without its problems. I had to re-install Visual Studio 2005 and the Service Pack 1 before it would work correctly. Gave me a whole bunch of errors because the xutility file (among others) wasn't changed correctly.

But it works now. 5 hours after i first tried to install SP1.
Just be aware that SP1 must be installed on the client computer now. That gave me a bit of trouble.
FieryRich wrote:
Found out what the problem was! ...

cool !! 😎
it works

Original thread: https://box2d.org/forum/viewtopic.php?t=950