Login  Register

Re: Compile error

Posted by dxli on Mar 14, 2014; 10:46am
URL: https://forum.librecad.org/Compile-error-tp5709682p5709687.html

Yes, looks like lambda is supported gcc-4.5 and up.

is it this compiler error due to "-std=c++11" being ignored by gcc <= 4.6?

LordOfBikes wrote
I have build sucessfully with Ubuntu 12.04, gcc 4.6, with latest source. Therefore I added the CXX_CPP11_FLAG variable.

The error is caused by the use of [] lambda function in line 1892. This is supported since gcc 4.5 and c++0x compiler switch.

But I can't guarantee, that no other errors will arise with gcc 4.5.

Regards

Armin