Hi, I've been trying to build this, and failing.
I found the dependency on opencascade, and have installed that. Build is currently failing with:
simon@mason:~/tmp/openscad-step-reader$ make
g++ -std=c++11 -g -O0 -I/usr/include/opencascade -c -o openscad-step-reader.o openscad-step-reader.cpp
In file included from openscad-step-reader.cpp:23:
triangle.h:33:8: error: ‘ostream’ does not name a type
33 | static ostream & operator << (ostream &out, const Point &p)
| ^~~~~~~
triangle.h: In member function ‘void Triangle::write_points_vector(std::ostream&) const’:
triangle.h:48:31: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘const Point’)
48 | ostrm << _p1 << "," << _p2 << "," << _p3 ;
| ~~~~~ ^~ ~~~
| | |
| | const Point
| std::ostream {aka std::basic_ostream<char>}
...
triangle.h: In member function ‘void Triangle::write_ascii_stl(std::ostream&) const’:
triangle.h:55:34: error: ‘endl’ was not declared in this scope; did you mean ‘std::endl’?
55 | ostrm << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: ‘std::endl’ declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
openscad-step-reader.cpp: In function ‘void show_version()’:
openscad-step-reader.cpp:85:28: error: ‘endl’ was not declared in this scope; did you mean ‘std::endl’?
85 | std::cout << 42 << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: ‘std::endl’ declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
make: *** [<builtin>: openscad-step-reader.o] Error 1
I'm guessing I'm missing another dependency I haven't tracked down? I should confess I don't use C much at all these days!
Hi, I've been trying to build this, and failing.
I found the dependency on opencascade, and have installed that. Build is currently failing with:
I'm guessing I'm missing another dependency I haven't tracked down? I should confess I don't use C much at all these days!