gilbo / cork

3D Boolean / CSG Library
Other
401 stars 172 forks source link

Compiling Cork in Linux using Terminal #23

Open babysaint09 opened 8 years ago

babysaint09 commented 8 years ago

Hi, There is a problem when compiling Cork in Linux , I already installed clang 3.7 and GMP. Any suggestion thanks.

Compiling obj/cork.o In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:47: In file included from src/mesh/mesh.tpp:29: src/mesh/../isct/unsafeRayTriIsct.h:46:5: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(t); ^~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:47: In file included from src/mesh/mesh.tpp:29: src/mesh/../isct/unsafeRayTriIsct.h:47:5: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(bary); ^~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:401:9: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(v->ref < mesh->verts.size()); ^~~~~~~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:405:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(eaddr.count(e) > 0); // pointer is good ^~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:406:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(count2(e->verts, v) == 1); // back-pointer is good ^~~~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:409:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(taddr.count(t) > 0); ^~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:410:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(count3(t->verts, v) == 1); ^~~~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:417:9: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(e->verts[0] != e->verts[1]); ^~~~~~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:420:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(vaddr.count(v) > 0); ^~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:421:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(count(v->edges, e) == 1); ^~~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:424:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(taddr.count(t) > 0); ^~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:425:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(count3(t->edges, e) == 1); ^~~~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:432:9: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(t->verts[0] != t->verts[1] && t->verts[1] != t->verts[2] ^~~~~~~~~~~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:436:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(vaddr.count(v) > 0); ^~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:437:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(count(v->tris, t) == 1); ^~~~~~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:440:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(eaddr.count(e) == 1); ^~~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:441:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(count(e->tris, t) == 1); ^~~~~~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:447:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE((v0 == t->verts[(k+1)%3] && v1 == t->verts[(k+2)%3]) ^~~~~~~~~~~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:507:34: error: invalid operands to binary expression ('basic_ostream<char, std::char_traits >' and 'TopoTri') cout << " " << t << ": " << _t << endl;


/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:245:7: note: 
      candidate function not viable: no known conversion from 'TopoTri' to
      'const void *' for 1st argument; remove *
      operator<<(const void_ __p)
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:108:7: note: 
      candidate function not viable: no known conversion from 'TopoTri' to
      '__ostream_type &(_)(__ostream_type &)' for 1st argument
      operator<<(__ostream_type& (___pf)(__ostream_type&))
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:117:7: note: 
      candidate function not viable: no known conversion from 'TopoTri' to
      '__ios_type &(_)(__ios_type &)' for 1st argument
      operator<<(__ios_type& (___pf)(__ios_type&))
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:127:7: note: 
      candidate function not viable: no known conversion from 'TopoTri' to
      'std::ios_base &(_)(std::ios_base &)' for 1st argument
      operator<<(ios_base& (___pf) (ios_base&))
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:166:7: note: 
      candidate function not viable: no known conversion from 'TopoTri' to
      'long' for 1st argument
      operator<<(long __n)
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:170:7: note: 
      candidate function not viable: no known conversion from 'TopoTri' to
      'unsigned long' for 1st argument
      operator<<(unsigned long __n)
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:174:7: note: 
      candidate function not viable: no known conversion from 'TopoTri' to
      'bool' for 1st argument
      operator<<(bool __n)
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:178:7: note: 
      candidate function not viable: no known conversion from 'TopoTri' to
      'short' for 1st argument
      operator<<(short __n);
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:181:7: note: 
      candidate function not viable: no known conversion from 'TopoTri' to
      'unsigned short' for 1st argument
      operator<<(unsigned short __n)
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:189:7: note: 
      candidate function not viable: no known conversion from 'TopoTri' to 'int'
      for 1st argument
      operator<<(int __n);
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:192:7: note: 
      candidate function not viable: no known conversion from 'TopoTri' to
      'unsigned int' for 1st argument
      operator<<(unsigned int __n)
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:201:7: note: 
      candidate function not viable: no known conversion from 'TopoTri' to
      'long long' for 1st argument
      operator<<(long long __n)
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:205:7: note: 
      candidate function not viable: no known conversion from 'TopoTri' to
      'unsigned long long' for 1st argument
      operator<<(unsigned long long __n)
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:220:7: note: 
      candidate function not viable: no known conversion from 'TopoTri' to
      'double' for 1st argument
      operator<<(double __f)
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:224:7: note: 
      candidate function not viable: no known conversion from 'TopoTri' to
      'float' for 1st argument
      operator<<(float __f)
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:232:7: note: 
      candidate function not viable: no known conversion from 'TopoTri' to
      'long double' for 1st argument
      operator<<(long double __f)
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:270:7: note: 
      candidate function not viable: no known conversion from 'TopoTri' to
      '__streambuf_type _' (aka 'basic_streambuf<char, std::char_traits<char> >
      *') for 1st argument
      operator<<(__streambuf_type_ __sb);
      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:476:5: note: 
      candidate function [with _CharT = char, _Traits = std::char_traits<char>]
      not viable: no known conversion from 'TopoTri' to 'char' for 2nd argument
    operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:482:5: note: 
      candidate function [with _Traits = std::char_traits<char>] not viable: no
      known conversion from 'TopoTri' to 'char' for 2nd argument
    operator<<(basic_ostream<char, _Traits>& __out, char __c)
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:488:5: note: 
      candidate function [with _Traits = std::char_traits<char>] not viable: no
      known conversion from 'TopoTri' to 'signed char' for 2nd argument
    operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:493:5: note: 
      candidate function [with _Traits = std::char_traits<char>] not viable: no
      known conversion from 'TopoTri' to 'unsigned char' for 2nd argument
    operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:530:5: note: 
      candidate function [with _Traits = std::char_traits<char>] not viable: no
      known conversion from 'TopoTri' to 'const char _' for 2nd argument
    operator<<(basic_ostream<char, _Traits>& __out, const char_ __s)
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:543:5: note: 
      candidate function [with _Traits = std::char_traits<char>] not viable: no
      known conversion from 'TopoTri' to 'const signed char _' for 2nd argument
    operator<<(basic_ostream<char, _Traits>& __out, const signed char_ __s)
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:548:5: note: 
      candidate function [with _Traits = std::char_traits<char>] not viable: no
      known conversion from 'TopoTri' to 'const unsigned char _' for 2nd
      argument
    operator<<(basic_ostream<char, _Traits>& __out, const unsigned char_ __s)
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:602:5: note: 
      candidate function [with _CharT = char, _Traits = std::char_traits<char>,
      _Tp = TopoTri] not viable: no known conversion from 'basic_ostream<char,
      std::char_traits<char> >' to 'basic_ostream<char, std::char_traits<char> >
      &&' for 1st argument
    operator<<(basic_ostream<_CharT, _Traits>&& __os, const _Tp& __x)
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/ostream.tcc:321:5: note: 
      candidate function [with _CharT = char, _Traits = std::char_traits<char>]
      not viable: no known conversion from 'TopoTri' to 'const char _' for 2nd
      argument
    operator<<(basic_ostream<_CharT, _Traits>& __out, const char_ __s)
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:1150:5: note: 
      candidate function [with _CharT = char, _Traits = std::char_traits<char>]
      not viable: no known conversion from 'TopoTri' to 'const
      std::bernoulli_distribution' for 2nd argument
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:471:5: note: 
      candidate template ignored: deduced conflicting types for parameter
      '_CharT' ('char' vs. 'TopoTri')
    operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/basic_string.h:2772:5: note: 
      candidate template ignored: could not match
      'basic_string<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>'
      against 'TopoTri'
    operator<<(basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:513:5: note: 
      candidate template ignored: could not match 'const _CharT _' against
      'TopoTri'
    operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT_ __s)
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.h:1279:5: note: 
      candidate template ignored: could not match
      'independent_bits_engine<type-parameter-0-0, __w, type-parameter-0-2>'
      against 'TopoTri'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:156:5: note: 
      candidate template ignored: could not match
      'linear_congruential_engine<type-parameter-0-0, __a, __c, __m>' against
      'TopoTri'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:477:5: note: 
      candidate template ignored: could not match
      'mersenne_twister_engine<type-parameter-0-0, __w, __n, __m, __r, __a, __u,
      __d, __s, __b, __t, __c, __l, __f>' against 'TopoTri'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:632:5: note: 
      candidate template ignored: could not match
      'subtract_with_carry_engine<type-parameter-0-0, __w, __s, __r>' against
      'TopoTri'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:702:5: note: 
      candidate template ignored: could not match
      'discard_block_engine<type-parameter-0-0, __p, __r>' against 'TopoTri'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:831:5: note: 
      candidate template ignored: could not match
      'shuffle_order_engine<type-parameter-0-0, __k>' against 'TopoTri'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:1029:5: note: 
      candidate template ignored: could not match
      'uniform_int_distribution<type-parameter-0-0>' against 'TopoTri'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:1088:5: note: 
      candidate template ignored: could not match
      'uniform_real_distribution<type-parameter-0-0>' against 'TopoTri'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:1232:5: note: 
      candidate template ignored: could not match
      'geometric_distribution<type-parameter-0-0>' against 'TopoTri'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:1347:5: note: 
      candidate template ignored: could not match
      'negative_binomial_distribution<type-parameter-0-0>' against 'TopoTri'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:1552:5: note: 
      candidate template ignored: could not match
      'poisson_distribution<type-parameter-0-0>' against 'TopoTri'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:1819:5: note: 
      candidate template ignored: could not match
      'binomial_distribution<type-parameter-0-0>' against 'TopoTri'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:1883:5: note: 
      candidate template ignored: could not match
      'exponential_distribution<type-parameter-0-0>' against 'TopoTri'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:2050:5: note: 
      candidate template ignored: could not match
      'normal_distribution<type-parameter-0-0>' against 'TopoTri'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:2115:5: note: 
      candidate template ignored: could not match
      'lognormal_distribution<type-parameter-0-0>' against 'TopoTri'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:2188:5: note: 
      candidate template ignored: could not match
      'chi_squared_distribution<type-parameter-0-0>' against 'TopoTri'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:2275:5: note: 
      candidate template ignored: could not match
      'cauchy_distribution<type-parameter-0-0>' against 'TopoTri'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:2352:5: note: 
      candidate template ignored: could not match
      'fisher_f_distribution<type-parameter-0-0>' against 'TopoTri'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:2427:5: note: 
      candidate template ignored: could not match
      'student_t_distribution<type-parameter-0-0>' against 'TopoTri'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:2596:5: note: 
      candidate template ignored: could not match
      'gamma_distribution<type-parameter-0-0>' against 'TopoTri'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:2674:5: note: 
      candidate template ignored: could not match
      'weibull_distribution<type-parameter-0-0>' against 'TopoTri'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:2750:5: note: 
      candidate template ignored: could not match
      'extreme_value_distribution<type-parameter-0-0>' against 'TopoTri'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:2886:5: note: 
      candidate template ignored: could not match
      'discrete_distribution<type-parameter-0-0>' against 'TopoTri'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:3096:5: note: 
      candidate template ignored: could not match
      'piecewise_constant_distribution<type-parameter-0-0>' against 'TopoTri'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:3312:5: note: 
      candidate template ignored: could not match
      'piecewise_linear_distribution<type-parameter-0-0>' against 'TopoTri'
    operator<<(std::basic_ostream<_CharT, _Traits>& __os,
    ^
src/isct/../math/vec.h:133:22: note: candidate template ignored: could not match
      'Vec2<type-parameter-0-0>' against 'TopoTri'
inline std::ostream& operator<<(std::ostream &out, const Vec2<N> &vec) {
                     ^
src/isct/../math/vec.h:240:22: note: candidate template ignored: could not match
      'Vec3<type-parameter-0-0>' against 'TopoTri'
inline std::ostream& operator<<(std::ostream &out, const Vec3<N> &vec) {
                     ^
src/isct/../math/vec.h:349:22: note: candidate template ignored: could not match
      'Vec4<type-parameter-0-0>' against 'TopoTri'
inline std::ostream& operator<<(std::ostream &out, const Vec4<N> &vec) {
                     ^
src/isct/../math/ray.h:46:22: note: candidate template ignored: could not match
      'Ray3<type-parameter-0-0>' against 'TopoTri'
inline std::ostream& operator<<(std::ostream &out, const Ray3<N> &ray) {
                     ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
Makefile:206: recipe for target 'obj/cork.o' failed
make: **\* [obj/cork.o] Error 1
gilbo commented 8 years ago

I looked at the prelude file in master, but I can’t find anywhere where it says

throw std::exception(“ENSURE FAILED”);

so, I have no idea whose fork of the code you’re trying to compile. Most of these errors also seem to have to do with interfacing with the standard libraries, so I’d suggest you start there, as well as figuring out where you got all this code from.

— Gilbert

On Oct 21, 2015, at 6:42 PM, babysaint09 notifications@github.com wrote:

Hi, There is a problem when compiling Cork in Linux , I already install clang 3.7 and GMP. Any suggestion thanks.

Compiling obj/cork.o In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:47: In file included from src/mesh/mesh.tpp:29: src/mesh/../isct/unsafeRayTriIsct.h:46:5: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(t); ^~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:47: In file included from src/mesh/mesh.tpp:29: src/mesh/../isct/unsafeRayTriIsct.h:47:5: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(bary); ^~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:401:9: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(v->ref < mesh->verts.size()); ^~~~~~~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:405:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(eaddr.count(e) > 0); // pointer is good ^~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:406:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(count2(e->verts, v) == 1); // back-pointer is good ^~~~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:409:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(taddr.count(t) > 0); ^~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:410:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(count3(t->verts, v) == 1); ^~~~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:417:9: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(e->verts[0] != e->verts[1]); ^~~~~~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:420:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(vaddr.count(v) > 0); ^~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:421:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(count(v->edges, e) == 1); ^~~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:424:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(taddr.count(t) > 0); ^~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:425:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(count3(t->edges, e) == 1); ^~~~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:432:9: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(t->verts[0] != t->verts[1] && t->verts[1] != t->verts[2] ^~~~~~~~~~~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:436:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(vaddr.count(v) > 0); ^~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:437:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(count(v->tris, t) == 1); ^~~~~~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:440:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(eaddr.count(e) == 1); ^~~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:441:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE(count(e->tris, t) == 1); ^~~~~~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:447:13: error: no matching conversion for functional-style cast from 'const char [14]' to 'std::exception' ENSURE((v0 == t->verts[(k+1)%3] && v1 == t->verts[(k+2)%3]) ^~~~~~~~~~~~~~~ src/util/prelude.h:63:9: note: expanded from macro 'ENSURE' throw std::exception("ENSURE FAILED"); \ ^~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:60:9: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const char [14]' to 'const std::exception' for 1st argument class exception ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/exception:63:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided exception() _GLIBCXX_USE_NOEXCEPT { } ^ In file included from src/cork.cpp:28: In file included from src/mesh/mesh.h:48: In file included from src/mesh/mesh.remesh.tpp:35: src/mesh/mesh.topoCache.tpp:507:34: error: invalid operands to binary expression ('basic_ostream >' and 'TopoTri') cout << " " << t << ": " << t << endl;


/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:245:7: note: 
candidate function not viable: no known conversion from 'TopoTri' to
'const void _' for 1st argument; remove *
operator<<(const void __p)
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:108:7: note: 
candidate function not viable: no known conversion from 'TopoTri' to
'__ostream_type &()(__ostream_type &)' for 1st argument
operator<<(__ostream_type& (__pf)(__ostream_type&))
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:117:7: note: 
candidate function not viable: no known conversion from 'TopoTri' to
'__ios_type &()(__ios_type &)' for 1st argument
operator<<(__ios_type& (__pf)(__ios_type&))
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:127:7: note: 
candidate function not viable: no known conversion from 'TopoTri' to
'std::ios_base &()(std::ios_base &)' for 1st argument
operator<<(ios_base& (__pf) (ios_base&))
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:166:7: note: 
candidate function not viable: no known conversion from 'TopoTri' to
'long' for 1st argument
operator<<(long __n)
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:170:7: note: 
candidate function not viable: no known conversion from 'TopoTri' to
'unsigned long' for 1st argument
operator<<(unsigned long __n)
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:174:7: note: 
candidate function not viable: no known conversion from 'TopoTri' to
'bool' for 1st argument
operator<<(bool __n)
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:178:7: note: 
candidate function not viable: no known conversion from 'TopoTri' to
'short' for 1st argument
operator<<(short __n);
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:181:7: note: 
candidate function not viable: no known conversion from 'TopoTri' to
'unsigned short' for 1st argument
operator<<(unsigned short __n)
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:189:7: note: 
candidate function not viable: no known conversion from 'TopoTri' to 'int'
for 1st argument
operator<<(int __n);
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:192:7: note: 
candidate function not viable: no known conversion from 'TopoTri' to
'unsigned int' for 1st argument
operator<<(unsigned int __n)
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:201:7: note: 
candidate function not viable: no known conversion from 'TopoTri' to
'long long' for 1st argument
operator<<(long long __n)
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:205:7: note: 
candidate function not viable: no known conversion from 'TopoTri' to
'unsigned long long' for 1st argument
operator<<(unsigned long long __n)
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:220:7: note: 
candidate function not viable: no known conversion from 'TopoTri' to
'double' for 1st argument
operator<<(double __f)
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:224:7: note: 
candidate function not viable: no known conversion from 'TopoTri' to
'float' for 1st argument
operator<<(float __f)
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:232:7: note: 
candidate function not viable: no known conversion from 'TopoTri' to
'long double' for 1st argument
operator<<(long double __f)
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:270:7: note: 
candidate function not viable: no known conversion from 'TopoTri' to
'__streambuf_type ' (aka 'basic_streambuf >
*') for 1st argument
operator<<(__streambuf_type __sb);
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:476:5: note: 
candidate function [with _CharT = char, _Traits = std::char_traits]
not viable: no known conversion from 'TopoTri' to 'char' for 2nd argument
operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:482:5: note: 
candidate function [with _Traits = std::char_traits] not viable: no
known conversion from 'TopoTri' to 'char' for 2nd argument
operator<<(basic_ostream& __out, char __c)
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:488:5: note: 
candidate function [with _Traits = std::char_traits] not viable: no
known conversion from 'TopoTri' to 'signed char' for 2nd argument
operator<<(basic_ostream& __out, signed char __c)
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:493:5: note: 
candidate function [with _Traits = std::char_traits] not viable: no
known conversion from 'TopoTri' to 'unsigned char' for 2nd argument
operator<<(basic_ostream& __out, unsigned char __c)
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:530:5: note: 
candidate function [with _Traits = std::char_traits] not viable: no
known conversion from 'TopoTri' to 'const char ' for 2nd argument
operator<<(basic_ostream& __out, const char __s)
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:543:5: note: 
candidate function [with _Traits = std::char_traits] not viable: no
known conversion from 'TopoTri' to 'const signed char ' for 2nd argument
operator<<(basic_ostream& __out, const signed char __s)
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:548:5: note: 
candidate function [with _Traits = std::char_traits] not viable: no
known conversion from 'TopoTri' to 'const unsigned char ' for 2nd
argument
operator<<(basic_ostream& __out, const unsigned char __s)
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:602:5: note: 
candidate function [with _CharT = char, _Traits = std::char_traits,
_Tp = TopoTri] not viable: no known conversion from 'basic_ostream std::char_traits >' to 'basic_ostream >
&&' for 1st argument
operator<<(basic_ostream<_CharT, _Traits>&& __os, const _Tp& __x)
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/ostream.tcc:321:5: note: 
candidate function [with _CharT = char, _Traits = std::char_traits]
not viable: no known conversion from 'TopoTri' to 'const char ' for 2nd
argument
operator<<(basic_ostream<_CharT, _Traits>& __out, const char __s)
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:1150:5: note: 
candidate function [with _CharT = char, _Traits = std::char_traits]
not viable: no known conversion from 'TopoTri' to 'const
std::bernoulli_distribution' for 2nd argument
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:471:5: note: 
candidate template ignored: deduced conflicting types for parameter
'_CharT' ('char' vs. 'TopoTri')
operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/basic_string.h:2772:5: note: 
candidate template ignored: could not match
'basic_string'
against 'TopoTri'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/ostream:513:5: note: 
candidate template ignored: could not match 'const _CharT ' against
'TopoTri'
operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT __s)
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.h:1279:5: note: 
candidate template ignored: could not match
'independent_bits_engine'
against 'TopoTri'
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:156:5: note: 
candidate template ignored: could not match
'linear_congruential_engine' against
'TopoTri'
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:477:5: note: 
candidate template ignored: could not match
'mersenne_twister_engine __d, __s, __b, __t, __c, __l, __f>' against 'TopoTri'
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:632:5: note: 
candidate template ignored: could not match
'subtract_with_carry_engine' against
'TopoTri'
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:702:5: note: 
candidate template ignored: could not match
'discard_block_engine' against 'TopoTri'
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:831:5: note: 
candidate template ignored: could not match
'shuffle_order_engine' against 'TopoTri'
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:1029:5: note: 
candidate template ignored: could not match
'uniform_int_distribution' against 'TopoTri'
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:1088:5: note: 
candidate template ignored: could not match
'uniform_real_distribution' against 'TopoTri'
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:1232:5: note: 
candidate template ignored: could not match
'geometric_distribution' against 'TopoTri'
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:1347:5: note: 
candidate template ignored: could not match
'negative_binomial_distribution' against 'TopoTri'
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:1552:5: note: 
candidate template ignored: could not match
'poisson_distribution' against 'TopoTri'
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:1819:5: note: 
candidate template ignored: could not match
'binomial_distribution' against 'TopoTri'
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:1883:5: note: 
candidate template ignored: could not match
'exponential_distribution' against 'TopoTri'
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:2050:5: note: 
candidate template ignored: could not match
'normal_distribution' against 'TopoTri'
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:2115:5: note: 
candidate template ignored: could not match
'lognormal_distribution' against 'TopoTri'
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:2188:5: note: 
candidate template ignored: could not match
'chi_squared_distribution' against 'TopoTri'
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:2275:5: note: 
candidate template ignored: could not match
'cauchy_distribution' against 'TopoTri'
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:2352:5: note: 
candidate template ignored: could not match
'fisher_f_distribution' against 'TopoTri'
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:2427:5: note: 
candidate template ignored: could not match
'student_t_distribution' against 'TopoTri'
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:2596:5: note: 
candidate template ignored: could not match
'gamma_distribution' against 'TopoTri'
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:2674:5: note: 
candidate template ignored: could not match
'weibull_distribution' against 'TopoTri'
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:2750:5: note: 
candidate template ignored: could not match
'extreme_value_distribution' against 'TopoTri'
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:2886:5: note: 
candidate template ignored: could not match
'discrete_distribution' against 'TopoTri'
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:3096:5: note: 
candidate template ignored: could not match
'piecewise_constant_distribution' against 'TopoTri'
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/random.tcc:3312:5: note: 
candidate template ignored: could not match
'piecewise_linear_distribution' against 'TopoTri'
operator<<(std::basic_ostream<_CharT, _Traits>& __os,
^
src/isct/../math/vec.h:133:22: note: candidate template ignored: could not match
'Vec2' against 'TopoTri'
inline std::ostream& operator<<(std::ostream &out, const Vec2 &vec) {
^
src/isct/../math/vec.h:240:22: note: candidate template ignored: could not match
'Vec3' against 'TopoTri'
inline std::ostream& operator<<(std::ostream &out, const Vec3 &vec) {
^
src/isct/../math/vec.h:349:22: note: candidate template ignored: could not match
'Vec4' against 'TopoTri'
inline std::ostream& operator<<(std::ostream &out, const Vec4 &vec) {
^
src/isct/../math/ray.h:46:22: note: candidate template ignored: could not match
'Ray3' against 'TopoTri'
inline std::ostream& operator<<(std::ostream &out, const Ray3 &ray) {
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
Makefile:206: recipe for target 'obj/cork.o' failed
make: *_\* [obj/cork.o] Error 1

—
Reply to this email directly or view it on GitHub https://github.com/gilbo/cork/issues/23.
babysaint09 commented 8 years ago

Yeh.. I got it! It already compile . I think I've got the wrong file ... Thank's a lot!