Menu

#105 stl-related build error: symbol is private within context

pending
nobody
Assimp lib (91)
5
2013-03-28
2012-12-13
Yuri
No

Building version 3.0.1270 on FreeBSD 9.1 amd64 fails:

[ 1%] Building CXX object code/CMakeFiles/assimp.dir/BlenderLoader.cpp.o
In file included from /home/yuri/opengl-assimp/assimp--3.0.1270-source-only/code/AssimpPCH.h:140,
from /home/yuri/opengl-assimp/assimp--3.0.1270-source-only/code/BlenderLoader.cpp:44:
/home/yuri/opengl-assimp/assimp--3.0.1270-source-only/code/../include/assimp/postprocess.h:631:31: warning: no newline at end of file
/usr/include/c++/4.2/bits/ios_base.h: In copy constructor 'std::basic_ios<char, std::char_traits<char> >::basic_ios(const std::basic_ios<char, std::char_traits<char> >&)':
/usr/include/c++/4.2/iosfwd:55: instantiated from 'static void Assimp::LogFunctions<TDeriving>::LogDebug(const char*) [with TDeriving = Assimp::BlenderImporter]'
/home/yuri/opengl-assimp/assimp--3.0.1270-source-only/code/BlenderLoader.cpp:179: instantiated from here
/usr/include/c++/4.2/bits/ios_base.h:779: error: 'std::ios_base::ios_base(const std::ios_base&)' is private
/usr/include/c++/4.2/iosfwd:55: error: within this context
/usr/include/c++/4.2/iosfwd: In copy constructor 'std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream(const std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >&)':
/usr/include/c++/4.2/iosfwd:79: note: synthesized method 'std::basic_ios<char, std::char_traits<char> >::basic_ios(const std::basic_ios<char, std::char_traits<char> >&)' first required here
/usr/include/c++/4.2/streambuf: In copy constructor 'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::basic_stringbuf(const std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >&)':
/usr/include/c++/4.2/streambuf:794: error: 'std::basic_streambuf<_CharT, _Traits>::basic_streambuf(const std::basic_streambuf<_CharT, _Traits>&) [with _CharT = char, _Traits = std::char_traits<char>]' is private
/usr/include/c++/4.2/iosfwd:71: error: within this context
/usr/include/c++/4.2/iosfwd: In copy constructor 'std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream(const std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >&)':
/usr/include/c++/4.2/iosfwd:79: instantiated from 'static void Assimp::LogFunctions<TDeriving>::LogDebug(const char*) [with TDeriving = Assimp::BlenderImporter]'
/home/yuri/opengl-assimp/assimp--3.0.1270-source-only/code/BlenderLoader.cpp:179: instantiated from here
/usr/include/c++/4.2/iosfwd:79: note: synthesized method 'std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::basic_stringbuf(const std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >&)' first required here
/home/yuri/opengl-assimp/assimp--3.0.1270-source-only/code/TinyFormatter.h: In copy constructor 'Assimp::Formatter::basic_formatter<char, std::char_traits<char>, std::allocator<char> >::basic_formatter(const Assimp::Formatter::basic_formatter<char, std::char_traits<char>, std::allocator<char> >&)':
/home/yuri/opengl-assimp/assimp--3.0.1270-source-only/code/TinyFormatter.h:69: note: synthesized method 'std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream(const std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >&)' first required here
/home/yuri/opengl-assimp/assimp--3.0.1270-source-only/code/LogAux.h: In static member function 'static void Assimp::LogFunctions<TDeriving>::LogDebug(const char*) [with TDeriving = Assimp::BlenderImporter]':
/home/yuri/opengl-assimp/assimp--3.0.1270-source-only/code/LogAux.h:118: note: synthesized method 'Assimp::Formatter::basic_formatter<char, std::char_traits<char>, std::allocator<char> >::basic_formatter(const Assimp::Formatter::basic_formatter<char, std::char_traits<char>, std::allocator<char> >&)' first required here

Discussion

  • Yuri

    Yuri - 2012-12-13

    This is fixed with gcc-4.6
    You need to do something like suggested here:
    http://stackoverflow.com/questions/435708/any-way-in-cmake-to-require-gcc-version-4
    to fail compilation attempts with too early versions of gcc.

     
  • Nobody/Anonymous

    Weblog moved out in chrome [url=http://www.louis-vuittong.com/]cheap louis vuitton handbags[/url] <a href="http://www.louis-vuittong.com/" title="cheap louis vuitton handbags">cheap louis vuitton handbags</a>

     
  • Alexander Gessler

    • status: open --> pending
     
  • Nobody/Anonymous

    CulEtp <a href="http://otaatoqowvke.com/">otaatoqowvke</a>, [url=http://coehnreasgte.com/]coehnreasgte[/url], [link=http://ifhpnyoskqxf.com/]ifhpnyoskqxf[/link], http://qlqyyexshbiq.com/

     
  • Nobody/Anonymous

    Ball Gowns Prom Dresses http://www.dressyus.com/prom-dresses-by-type/ball-gowns-prom-dresses.html <a href="http://www.dressyus.com/prom-dresses-by-type/ball-gowns-prom-dresses.html" title="Ball Gowns Prom Dresses">Ball Gowns Prom Dresses</a>

     
  • Nobody/Anonymous

    SourceForge.net: Open Asset Import Library: Detail: 3595689 - stl-related build error: symbol is private within context grape 5s http://grape5s.n.nu