Problem compiling in release mode

acrabb3
Posts: 1
Joined: Sun Aug 14, 2011 12:05 am

Problem compiling in release mode

Post by acrabb3 »

Hi,
I'm using Bullet as part of a game, writing C++ in Visual Studio 2010.
First the good news: when I'm running in Debug mode, everything is fine
However, when I switch to Release, I get the following error message on compile:

error LNK2005: "public: virtual __thiscall btPolyhedralConvexShape::~btPolyhedralConvexShape(void)" (??1btPolyhedralConvexShape@@UAE@XZ) already defined in p_Shape.obj

Having checked through the solution (I'm not even using that class, let alone re-writing it), and recompiled the Bullet libraries multiple times, the problem still exists.
Any suggestions/solutions are more than welcome

Thanks