Re: error gcc compiling cpp file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 12 Dec 2003 jeff@xxxxxxx 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




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux