Skip to content

Instantly share code, notes, and snippets.

@djvs
Created August 17, 2014 03:40
Show Gist options
  • Save djvs/c14a07e5559927ac990f to your computer and use it in GitHub Desktop.
Save djvs/c14a07e5559927ac990f to your computer and use it in GitHub Desktop.
g++ main.cpp -o part1 -I/usr/local/include/bullet
/tmp/ccJjRcPr.o: In function `btTypedConstraint::operator delete(void*)':
main.cpp:(.text._ZN17btTypedConstraintdlEPv[btTypedConstraint::operator delete(void*)]+0x14): undefined reference to `btAlignedFreeInternal(void*)'
/tmp/ccJjRcPr.o: In function `btAlignedAllocator<int, 16u>::deallocate(int*)':
main.cpp:(.text._ZN18btAlignedAllocatorIiLj16EE10deallocateEPi[btAlignedAllocator<int, 16u>::deallocate(int*)]+0x18): undefined reference to `btAlignedFreeInternal(void*)'
/tmp/ccJjRcPr.o: In function `btAlignedAllocator<btHashInt, 16u>::deallocate(btHashInt*)':
main.cpp:(.text._ZN18btAlignedAllocatorI9btHashIntLj16EE10deallocateEPS0_[btAlignedAllocator<btHashInt, 16u>::deallocate(btHashInt*)]+0x18): undefined reference to `btAlignedFreeInternal(void*)'
/tmp/ccJjRcPr.o: In function `btAlignedAllocator<btTriangleInfo, 16u>::deallocate(btTriangleInfo*)':
main.cpp:(.text._ZN18btAlignedAllocatorI14btTriangleInfoLj16EE10deallocateEPS0_[btAlignedAllocator<btTriangleInfo, 16u>::deallocate(btTriangleInfo*)]+0x18): undefined reference to `btAlignedFreeInternal(void*)'
/tmp/ccJjRcPr.o:(.rodata._ZTV17btTypedConstraint[vtable for btTypedConstraint]+0x60): undefined reference to `btTypedConstraint::serialize(void*, btSerializer*) const'
collect2: ld returned 1 exit status
make: *** [all] Error 1
@djvs
Copy link
Author

djvs commented Aug 17, 2014

g++ main.cpp -o part1 -I/usr/local/include/bullet

@djvs
Copy link
Author

djvs commented Aug 17, 2014

include <btBulletDynamicsCommon.h>

int main (){
return 0;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment