Code Assistance for C++ in NetBeans: define __cplusplus Posted on 2015-09-07 [Monday] by Jay Jay See here: Go to Tools->Options Select C/C++ menu Select Code Assistance tab Select C++ Compiler tab In Macro Definitions list view, locate __cplusplus and change its value from 199711L to 201103L Click OK button