error gcc compiling cpp file
Matthew Saltzman
mjs at ces.clemson.edu
Sat Dec 13 16:28:49 UTC 2003
On Fri, 12 Dec 2003 jeff at i33.com wrote:
> On Fri, 12 Dec 2003, fred smith wrote:
> > Try using "g++" innstead of "gcc", because you're compiling c++, not C.
>
> Won't help much.
>
> > > # include <conio.h>
>
> This isn't a standard C or C++ header. It's sometimes found with
> DOS/Windows compilers.
>
> Jeff
So what should one do instead? Lirbaries for full-screen formatted output
on text consoles are not part of the standard language for either C or
C++, nor are libraries for GUI construction. For text consoles, the
Unix/Linux standard is ncurses.
The OP's choices are:
(1) Stick to standard, non-full-screen stream output. Delete the #include
for conio.h and any calls to functions declared there.
(2) Learn ncurses and replace conio functions with ncurses functions.
(3) Choose a GUI library (e.g., GNOME or QT or TCL/TK) and learn it.
--
Matthew Saltzman
Clemson University Math Sciences
mjs AT clemson DOT edu
http://www.math.clemson.edu/~mjs
More information about the users
mailing list