#6 Missing std::auto_ptr header in include/dae/daeDatabase.h

closed-accepted
nobody
None
5
2008-09-02
2008-06-26
No

On my system, the collada-dom library won't compile without including <memory> for the std::auto_ptr definition:

Compiling src/dae/dae.cpp to build/linux-1.4/obj/dae.o
In file included from include/dae/daeDatabase.h:18,
from src/dae/daeAtomicType.cpp:20:
include/dae.h:195: error: ISO C++ forbids declaration of ‘auto_ptr’ with no type
include/dae.h:195: error: invalid use of ‘::’
include/dae.h:195: error: expected ‘;’ before ‘<’ token
make: *** [build/linux-1.4/obj/daeAtomicType.o] Error 1

$ uname -a
Linux eps142 2.6.24-1-amd64 #1 SMP Sat May 10 09:28:10 UTC 2008 x86_64 GNU/Linux

$ g++ -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.1-2' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-cld --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.3.1 (Debian 4.3.1-2)

Discussion

  • Alberto Luaces

    Alberto Luaces - 2008-06-26

    Patch including <memory>

     
  • Christoph Nenning

    • status: open --> closed-accepted
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks