I try to compile opennurbs 7 but I get the following error. Could anyone help me? Thanks
In file included from …/opennurbs_20121024/opennurbs.h(75),
from NURBS_.h(4),
from elementl.h(12),
from elementl.cpp(2):
…/opennurbs_20121024/opennurbs_quaternion.h(29): error: qualified name is not allowed static const ON_Quaternion J; // “j” = (0,0,1,0)
I get the error only for J variable but not for the other ones (I, K, …) which are defined in the same way.
Looks like Linux may not be supported out of the box, and compiling may need to involve editing the makefile. Have you tried to enforce the C++11 standard with the appropriate flag(s)? Fro the top of my head it may be --std=c++11 or something similar.
I use -std=c++17 in my project. Also, tried to compile opennurbs with c++17 or c++14 but the results were same. I compile opennurbs without any problem but when it is linking to my main project I get this error. I haven’t tried compiling opennurbs with -std=c++11. Could it be because of that?