Sorry, but I need some help (again).
I am moving forward into learning the basics of C++. My book (that damned book) says that in order to include the command "getchar in my file, in need to include the header <conio.h>. But then it says that in unix, that header is different (it is <curses.h>).
So, when I compile it in OS X using XCode, I need to include the <curses.h>. I do that: and this is my code
But althought the file can be compiled, the log tells me:
Can you point me into the right direction? Can you also tell me how can I see what functions and headers does each operating system include, so that I can use headers correctly?
I am moving forward into learning the basics of C++. My book (that damned book) says that in order to include the command "getchar in my file, in need to include the header <conio.h>. But then it says that in unix, that header is different (it is <curses.h>).
So, when I compile it in OS X using XCode, I need to include the <curses.h>. I do that: and this is my code
#include <iostream>
#include <curses.h>
using namespace std;
int main () {
cout << "Hello, World!\n";
getch();
return 0;
}
But althought the file can be compiled, the log tells me:
Session started at 2005-03-24 15:47:45 +0200.]
ZeroLink: unknown symbol '_stdscr'
Executable c++ tool has exited due to signal 6 (SIGABRT)
Can you point me into the right direction? Can you also tell me how can I see what functions and headers does each operating system include, so that I can use headers correctly?