# Integrating Bullet3 into a C++ project - Linking to libraries

I've been following the BulletQuickstart guide and I get as far as generating the vs2010 solution and converting to newer. I've also been following this very good answer from a few years ago and have included the src folder into my project.

The only thing that remains is to link the libraries after building the bullet solution but I'm not entirely sure which ones are the correct ones to use. I've tried:

• Linking against Bullet3Collision.lib, Bullet3Dynamics.lib and LinearMath.lib
• Linking against BulletCollision.lib, BulletDynamics.lib and LinearMath.lib
• Same as the above options, but with original filenames i.e. BulletCollision_vs2010_debug etc.

In every instance I get the usual errors when not linking properly:

 unresolved external symbol "void * __cdecl btAlignedAllocInternal.......


The small code I have calling some bullet stuff is:

#pragma once

#include "btBulletDynamicsCommon.h"
#include <stdio.h>

class BTPhysics
{
public:
BTPhysics();
~BTPhysics();

void Init();

private:
btDefaultCollisionConfiguration* m_pCollisionConfiguration;
btCollisionDispatcher* m_pDispatcher;

• Is there a btCommon lib that you're missing? Otherwise, are you building bullet and your game with the same version of VS and the same target settings? – Jay Mar 4 '19 at 23:15
• @Jay I added the Bullet3Common.lib but no dice. Yes, they are all being build with the same VS and targets. – DLPDev Mar 5 '19 at 10:32