On Sat, Jan 02, 2016 at 07:27:58PM +0100, Niemand Sonst wrote: > I type make and get an strange error: [...] > emc/rs274ngc/interp_internal.hh:44: error: ‘nearbyint’ is not a member of > ‘std’ > ..... > > IMO nearbyint is a member of std.
Yes, std::nearbyint is specified in C++11, at least according to http://en.cppreference.com/w/cpp/numeric/math/nearbyint On the one Ubuntu 10.04 system I have easy access to, I can't install the build dependencies of linuxcnc, but this translation unit does compile with "g++-4.4 -std=c++0x" or "g++-4.4 -std=gnu++0x": #include <cmath> const auto i = std::nearbyint(3.14); so either it's some local detail of your system or some additional compiler flag that LinuxCNC has added. You can see full compiler commandlines if you run make V=1 The call was added to LinuxCNC recently in the master branch after we dropped support for 10.04, and so it was never tested on 10.04. Jeff ------------------------------------------------------------------------------ _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers