I'm having a bit of a problem using the curses.h header file, and yes, I'm still a tad new at coding in C++. The problem is that when I try to compile, it gives the error:
C:\Users\james\AppData\Local\Temp\cc0VxbfM.o:main.cpp:(.text+0x82): undefined reference to `PDC_chadd'
Here's the code:
#include <conio.h>
#include <curses.h>
int main()
{
initscr();
int nPlayerX = 40, nPlayerY = 12;
while(true)
{
move(nPlayerY, nPlayerX); //Moves the console cursor on the Y and X axis
addch('Y'); //Add a character
}
}