Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Answer

Entered some useful descriptive text
Source Link

Your compiler not support lambda expression. Compilers do not support all features that come with C++11 or new incoming standards. Therefore you need to check which standards the compiler supports. Screenshot of compilation on GCC 4.4.7

You can see if I select gcc-4.4.7 same error( lambda expression error) but if I select gcc-4.5.3

Screenshot of compilation on GCC 4.5.2

No error. In summary, You have to change your compiler version :( >= gcc-4.5 ) to use lamda expression.

C++ Standards Support in GCC

Screenshot of compilation on GCC 4.4.7

You can see if I select gcc-4.4.7 same error but if I select gcc-4.5.3

Screenshot of compilation on GCC 4.5.2

No error. You have to change compiler version : >= gcc-4.5

C++ Standards Support in GCC

Your compiler not support lambda expression. Compilers do not support all features that come with C++11 or new incoming standards. Therefore you need to check which standards the compiler supports. Screenshot of compilation on GCC 4.4.7

You can see if I select gcc-4.4.7 same error( lambda expression error) but if I select gcc-4.5.3

Screenshot of compilation on GCC 4.5.2

No error. In summary, You have to change your compiler( >= gcc-4.5 ) to use lamda expression.

C++ Standards Support in GCC

added 96 characters in body
Source Link

Screenshot of compilation on GCC 4.4.7

You can see if I select gcc-4.4.7 same error but if I select gcc-4.5.3

Screenshot of compilation on GCC 4.5.2

No error. You have to change compiler version : >= gcc-4.5

C++ Standards Support in GCC

Screenshot of compilation on GCC 4.4.7

You can see if I select gcc-4.4.7 same error but if I select gcc-4.5.3

Screenshot of compilation on GCC 4.5.2

No error. You have to change compiler version.

Screenshot of compilation on GCC 4.4.7

You can see if I select gcc-4.4.7 same error but if I select gcc-4.5.3

Screenshot of compilation on GCC 4.5.2

No error. You have to change compiler version : >= gcc-4.5

C++ Standards Support in GCC

You could at least have entered some useful descriptive text.
Source Link

[gcc-4.4.7][1]Screenshot of compilation on GCC 4.4.7

You can see if I select gcc-4.4.7 same error but if I select gcc-4.5.3

[gcc-4.5.3][2]Screenshot of compilation on GCC 4.5.2

No error. You have to change compiler version [1]: https://i.sstatic.net/88rqg.png [2]: https://i.sstatic.net/GhlPU.png .

[gcc-4.4.7][1]

You can see if I select gcc-4.4.7 same error but if I select gcc-4.5.3

[gcc-4.5.3][2]

No error. You have to change compiler version [1]: https://i.sstatic.net/88rqg.png [2]: https://i.sstatic.net/GhlPU.png

Screenshot of compilation on GCC 4.4.7

You can see if I select gcc-4.4.7 same error but if I select gcc-4.5.3

Screenshot of compilation on GCC 4.5.2

No error. You have to change compiler version.

Source Link
Loading
lang-cpp

AltStyle によって変換されたページ (->オリジナル) /