I can’t use C++ syntax like cout, so I’ve tried using <conio.h> but it still says
undefined reference to ‘_gotoxy’
What’s the problem? Everyone says that conio.h its not in K&R either because it isn’t a standard library. Anyone got an idea?
I am using MinGW and command prompt.
When linking you need to add the ncurses library:
That last flag to the command line above (
-lncurses) is what tells the compiler to link (-l) with the ncurses library.