site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Dec 1, 2006, at 6:42 PM, Andre-John Mas wrote: int main ( int argc, char *argv ) { int c = getch(); //printf( "%c", c ); } I compiling it with the following command line: cc getch.c -lcurses Hope this helps, Eric _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... I am getting a Bus Error with this very simple application, on my MacBook Pro: Is this me or libcurses in cause? main is declared as returning an int and you aren't returning anything. Try adding 'return 0;'. I'd suggest compiling your code with warnings on, ideally via -Wall. That'll catch things like this. This email sent to site_archiver@lists.apple.com
participants (1)
-
Eric Albert