Problems with miniB3D

BlitzMax Forums/MiniB3D Module/Problems with miniB3D

ChaosCoder(Posted 2008) [#1]
When compiling programs which use miniB3D I get some pages of errors:

Building untitled2
Compiling:untitled2.bmx
flat assembler  version 1.67.26  (315314 kilobytes memory)
3 passes, 1453 bytes.
Linking:untitled2.exe
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(tree.cpp.release.win32.x86.o):tree.cpp:(.text+0xb85): undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(tree.cpp.release.win32.x86.o):tree.cpp:(.text+0xb9a): undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(tree.cpp.release.win32.x86.o):tree.cpp:(.text+0x1be9): undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(tree.cpp.release.win32.x86.o):tree.cpp:(.text$_ZNSt6vectorI6VectorSaIS0_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS0_S2_EERKS0_[__ZNSt6vectorI6VectorSaIS0_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS0_S2_EERKS0_]+0x156): undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(tree.cpp.release.win32.x86.o):tree.cpp:(.text$_ZNSt6vectorI6VectorSaIS0_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS0_S2_EERKS0_[__ZNSt6vectorI6VectorSaIS0_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS0_S2_EERKS0_]+0x164): undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(tree.cpp.release.win32.x86.o):tree.cpp:(.text$_ZNSt6vectorIiSaIiEE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPiS1_EERKi[__ZNSt6vectorIiSaIiEE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPiS1_EERKi]+0xd8): undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(tree.cpp.release.win32.x86.o):tree.cpp:(.text$_ZNSt6vectorIiSaIiEE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPiS1_EERKi[__ZNSt6vectorIiSaIiEE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPiS1_EERKi]+0xe8): undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(tree.cpp.release.win32.x86.o):tree.cpp:(.text$_ZNSt6vectorIiSaIiEEaSERKS1_[__ZNSt6vectorIiSaIiEEaSERKS1_]+0x80): undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(tree.cpp.release.win32.x86.o):tree.cpp:(.text$_ZNSt6vectorIiSaIiEEaSERKS1_[__ZNSt6vectorIiSaIiEEaSERKS1_]+0x90): undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(tree.cpp.release.win32.x86.o):tree.cpp:(.text$_ZNSt6vectorIPN12MeshCollider4NodeESaIS2_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS2_S4_EERKS2_[__ZNSt6vectorIPN12MeshCollider4NodeESaIS2_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS2_S4_EERKS2_]+0xd8): undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(tree.cpp.release.win32.x86.o):tree.cpp:(.text$_ZNSt6vectorIPN12MeshCollider4NodeESaIS2_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS2_S4_EERKS2_[__ZNSt6vectorIPN12MeshCollider4NodeESaIS2_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS2_S4_EERKS2_]+0xe8): undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(tree.cpp.release.win32.x86.o):tree.cpp:(.text$_ZNSt8_Rb_treeIfSt4pairIKfiESt10_Select1stIS2_ESt4lessIfESaIS2_EE8_M_eraseEPSt13_Rb_tree_nodeIS2_E[__ZNSt8_Rb_treeIfSt4pairIKfiESt10_Select1stIS2_ESt4lessIfESaIS2_EE8_M_eraseEPSt13_Rb_tree_nodeIS2_E]+0x22): undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(tree.cpp.release.win32.x86.o):tree.cpp:(.text$_ZNSt6vectorIN12MeshCollider8TriangleESaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_[__ZNSt6vectorIN12MeshCollider8TriangleESaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_]+0x140): undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(tree.cpp.release.win32.x86.o):tree.cpp:(.text$_ZNSt6vectorIN12MeshCollider8TriangleESaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_[__ZNSt6vectorIN12MeshCollider8TriangleESaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_]+0x14e): undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(tree.cpp.release.win32.x86.o):tree.cpp:(.text$_ZNSt6vectorIN12MeshCollider6VertexESaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_[__ZNSt6vectorIN12MeshCollider6VertexESaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_]+0x156): undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(tree.cpp.release.win32.x86.o):tree.cpp:(.text$_ZNSt6vectorIN12MeshCollider6VertexESaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_[__ZNSt6vectorIN12MeshCollider6VertexESaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_]+0x164): undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(tree.cpp.release.win32.x86.o):tree.cpp:(.text$_ZNSt8_Rb_treeIfSt4pairIKfiESt10_Select1stIS2_ESt4lessIfESaIS2_EE9_M_insertEPSt18_Rb_tree_node_baseSA_RKS2_[__ZNSt8_Rb_treeIfSt4pairIKfiESt10_Select1stIS2_ESt4lessIfESaIS2_EE9_M_insertEPSt18_Rb_tree_node_baseSA_RKS2_]+0x1c): undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(tree.cpp.release.win32.x86.o):tree.cpp:(.text$_ZNSt8_Rb_treeIfSt4pairIKfiESt10_Select1stIS2_ESt4lessIfESaIS2_EE9_M_insertEPSt18_Rb_tree_node_baseSA_RKS2_[__ZNSt8_Rb_treeIfSt4pairIKfiESt10_Select1stIS2_ESt4lessIfESaIS2_EE9_M_insertEPSt18_Rb_tree_node_baseSA_RKS2_]+0x93): undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(tree.cpp.release.win32.x86.o):tree.cpp:(.text$_ZNSt14__simple_allocIN12MeshCollider6VertexESt24__default_alloc_templateILb1ELi0EEE8allocateEj[__ZNSt14__simple_allocIN12MeshCollider6VertexESt24__default_alloc_templateILb1ELi0EEE8allocateEj]+0x15): undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(tree.cpp.release.win32.x86.o):tree.cpp:(.text$_ZNSt14__simple_allocIN12MeshCollider6VertexESt24__default_alloc_templateILb1ELi0EEE10deallocateEPS1_j[__ZNSt14__simple_allocIN12MeshCollider6VertexESt24__default_alloc_templateILb1ELi0EEE10deallocateEPS1_j]+0x14): undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(tree.cpp.release.win32.x86.o):tree.cpp:(.text$_ZNSt14__simple_allocIN12MeshCollider8TriangleESt24__default_alloc_templateILb1ELi0EEE8allocateEj[__ZNSt14__simple_allocIN12MeshCollider8TriangleESt24__default_alloc_templateILb1ELi0EEE8allocateEj]+0x15): undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(tree.cpp.release.win32.x86.o):tree.cpp:(.text$_ZNSt14__simple_allocIN12MeshCollider8TriangleESt24__default_alloc_templateILb1ELi0EEE10deallocateEPS1_j[__ZNSt14__simple_allocIN12MeshCollider8TriangleESt24__default_alloc_templateILb1ELi0EEE10deallocateEPS1_j]+0x14): undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(tree.cpp.release.win32.x86.o):tree.cpp:(.text$_ZNSt6vectorIN12MeshCollider8TriangleESaIS1_EED1Ev[__ZNSt6vectorIN12MeshCollider8TriangleESaIS1_EED1Ev]+0x3c): undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(tree.cpp.release.win32.x86.o):tree.cpp:(.text$_ZNSt14__simple_allocIPN12MeshCollider4NodeESt24__default_alloc_templateILb1ELi0EEE10deallocateEPS2_j[__ZNSt14__simple_allocIPN12MeshCollider4NodeESt24__default_alloc_templateILb1ELi0EEE10deallocateEPS2_j]+0x14): undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(tree.cpp.release.win32.x86.o):tree.cpp:(.text$_ZNSt14__simple_allocIiSt24__default_alloc_templateILb1ELi0EEE10deallocateEPij[__ZNSt14__simple_allocIiSt24__default_alloc_templateILb1ELi0EEE10deallocateEPij]+0x14): undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(tree.cpp.release.win32.x86.o):tree.cpp:(.text$_ZNSt14__simple_allocISt13_Rb_tree_nodeISt4pairIKfiEESt24__default_alloc_templateILb1ELi0EEE10deallocateEPS4_j[__ZNSt14__simple_allocISt13_Rb_tree_nodeISt4pairIKfiEESt24__default_alloc_templateILb1ELi0EEE10deallocateEPS4_j]+0x14): undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(tree.cpp.release.win32.x86.o):tree.cpp:(.text$_ZNSt14__simple_allocI6VectorSt24__default_alloc_templateILb1ELi0EEE10deallocateEPS0_j[__ZNSt14__simple_allocI6VectorSt24__default_alloc_templateILb1ELi0EEE10deallocateEPS0_j]+0x14): more undefined references to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)' follow
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(misc.cpp.release.win32.x86.o):misc.cpp:(.text+0x16): undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(misc.cpp.release.win32.x86.o):misc.cpp:(.text$_ZNSt8_Rb_treeI6VectorSt4pairIKS0_S0_ESt10_Select1stIS3_ESt4lessIS0_ESaIS3_EE8_M_eraseEPSt13_Rb_tree_nodeIS3_E[__ZNSt8_Rb_treeI6VectorSt4pairIKS0_S0_ESt10_Select1stIS3_ESt4lessIS0_ESaIS3_EE8_M_eraseEPSt13_Rb_tree_nodeIS3_E]+0x24): undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(misc.cpp.release.win32.x86.o):misc.cpp:(.text$_ZNSt8_Rb_treeI6VectorSt4pairIKS0_S0_ESt10_Select1stIS3_ESt4lessIS0_ESaIS3_EE9_M_insertEPSt18_Rb_tree_node_baseSB_RKS3_[__ZNSt8_Rb_treeI6VectorSt4pairIKS0_S0_ESt10_Select1stIS3_ESt4lessIS0_ESaIS3_EE9_M_insertEPSt18_Rb_tree_node_baseSB_RKS3_]+0x1c): undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(misc.cpp.release.win32.x86.o):misc.cpp:(.text$_ZNSt8_Rb_treeI6VectorSt4pairIKS0_S0_ESt10_Select1stIS3_ESt4lessIS0_ESaIS3_EE9_M_insertEPSt18_Rb_tree_node_baseSB_RKS3_[__ZNSt8_Rb_treeI6VectorSt4pairIKS0_S0_ESt10_Select1stIS3_ESt4lessIS0_ESaIS3_EE9_M_insertEPSt18_Rb_tree_node_baseSB_RKS3_]+0xd6): undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)'
D:/BlitzMax/mod/sidesign.mod/minib3d.mod/minib3d.release.win32.x86.a(misc.cpp.release.win32.x86.o):misc.cpp:(.text$_ZNSt14__simple_allocISt13_Rb_tree_nodeISt4pairIK6VectorS2_EESt24__default_alloc_templateILb1ELi0EEE10deallocateEPS5_j[__ZNSt14__simple_allocISt13_Rb_tree_nodeISt4pairIK6VectorS2_EESt24__default_alloc_templateILb1ELi0EEE10deallocateEPS5_j]+0x14): undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
Build Error: Failed to link D:/BlitzMax/tmp/untitled2.exe
Process complete


The problem is not in my code, because on my other PC it compiled without problems... Also this errors accur when I only write this line:

Framework sidesign.miniB3D

or

Import sidesign.miniB3D

I reinstalled bmax (130 and svn version), redownloaded the mods and rebuild them. Nothing changed...

2 days ago everything worked fine...

EDIT: now it works fine again... didn't do nothing...


simonh(Posted 2008) [#2]
I've sent you an email DAK - can you reply please.


Ferret(Posted 2009) [#3]
I have the exact same problem, anyway to fix this.

I have a new installation of BMax 1.33 and MingGw.
The only mod i have installed is Minib3d.


slenkar(Posted 2009) [#4]
if you install mingw over the old one you will get errors, you have to uninstall mingw then re-install


Ferret(Posted 2009) [#5]
I had a fresh MinGW install but an older version wich i downloaded from a link in a tut.

I uninstalled MinGW, downloaded the latest version, installed it and rebuild the modules.

It works now, thx for pointing me in the right dirrection.