Added the -lncurses option to the c++ compiler options. When building the following error is issued:
cd '/ home / ilia / NetBeansProjects / Console' / usr / bin / make -f Makefile CONF = Debug "/ usr / bin / make" -f nbproject / Makefile-Debug.mk QMAKE = SUBPROJECTS = .build-conf make [ 1]: Enter the directory
/home/ilia/NetBeansProjects/Console' "/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux/console make[2]: Вход в каталог//home/ilia/NetBeansProjects/Console' "/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux/console make[2]: Вход в каталогhome / ilia / NetBeansProjects / Console 'mkdir -p build / Debug / GNU-Linux rm -f "build / Debug / GNU-Linux / main.od" g ++ -lncurses -c -g -std = c ++ 14 -MMD -MP -MF "build / Debug / GNU-Linux / main.od" -o build / Debug / GNU-Linux / main.o main.cpp g ++: error: unrecognized command line option '-std = c ++ 14' make [2]: * [build / Debug / GNU-Linux / main.o] Error 1 make [2]: Exit the directory/home/ilia/NetBeansProjects/Console' make[1]: *** [.build-conf] Ошибка 2 make[1]: Выход из каталога/ home / ilia / NetBeansProjects / Console 'make: * [.build-impl] Error 2COLLECT FAILED (exit value 2 ,, total time: 58ms)
gcc --versionwhat does it say? - PinkTuxg++that is, not gcc. - PinkTuxg++ --versionexhaustg++ --versiong ++ (Ubuntu 4.8.4-2ubuntu1 ~ 14.04.3) 4.8.4 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - Herrgottg++ *.cpp -o prog -lncursesfine - Herrgott