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
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
- 387k
- 77
- 673
- 1.1k
[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.