Article View: gnu.gcc.bug
Article #6362gcc 2.7.x and curses
From: Stephan Ziemer
Date: Tue, 05 Dec 1995 00:00
Date: Tue, 05 Dec 1995 00:00
34 lines
1189 bytes
1189 bytes
Hi all !
I tried to comile the following progam with gcc 2.7.0/1/2 . When the
program runs, it stops with a "Segmentaion Fault". I didn't have this
problem with gcc 2.6.x and I don't have it with CC. I'm using
SunOS 4.1.4 and I tried it with gcc 2.7.1 under Solaris 2.something.
--- cut here --------------
#include <curses.h>
int main()
{
unsigned long u; // should be plenty of space
initscr();
printw("Test!");
refresh();
u=inch(); // this line doen't work !!!
printw("Got: %d",u);
refresh();
getch();
endwin();
return 0;
}
--- cut here --------------
I compiled it with 'gcc test.cpp -lcurses -ltermcap'.
I don't have a clue, why it actually doesn't work.
Any ideas ?
Stephan
Technical Details
Message-ID:
<4a1rr8$fjo@rzsun02.rrz.uni-hamburg.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,ac470403e14f42b9,start X-Google-Attributes: gid113d02,public From: 2ziemer@rzdspc42.informatik.uni-hamburg.de (Stephan Ziemer) Subject: gcc 2.7.x and curses Date: 1995/12/05 Message-ID: <4a1rr8$fjo@rzsun02.rrz.uni-hamburg.de> X-Deja-AN: 120945672 distribution: gnu sender: daemon@cis.ohio-state.edu organization: University of Hamburg -- Germany newsgroups: gnu.gcc.bug