Skip to main content

Thread: eclipse c++ add a lib ? how do I ?


how add libs complier eclipse?
, process correctly called because have no luck searching it.

if using command line adding -lncurese
code:
g++ game.cpp -o game -lncurses
eclipses
code:
**** build of configuration debug project game **** make  building target: game invoking: gcc c++ linker g++  -o"game"  ./src/game.o    ./src/game.o: in function `main': /home/keegan/cpp/game/debug/../src/game.cpp:17: undefined reference `initscr' /home/keegan/cpp/game/debug/../src/game.cpp:18: undefined reference `printw' /home/keegan/cpp/game/debug/../src/game.cpp:19: undefined reference `refresh' /home/keegan/cpp/game/debug/../src/game.cpp:20: undefined reference `stdscr' /home/keegan/cpp/game/debug/../src/game.cpp:20: undefined reference `wgetch' /home/keegan/cpp/game/debug/../src/game.cpp:21: undefined reference `endwin' collect2: ld returned 1 exit status make: *** [game] error 1

found finally

right click project file -> select properties
settings->gcc c++ linker->libraries->add new
ncurses

same -lncures
guess -l stands library


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] eclipse c++ add a lib ? how do I ?


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account