This is the mail archive of the
cygwin
mailing list for the Cygwin project.
C++ script doesn't work using g++
- From: Gery Herbozo Jimenez <gamejihou at hotmail dot com>
- To: <cygwin at cygwin dot com>
- Date: Fri, 11 Sep 2009 18:49:10 +0000
- Subject: C++ script doesn't work using g++
I have a simple script:
#include
#include
int main()
{
clrscr();
cout<<"Hallo";
getch();
}
However it doesn't work under this command:
g++ hallo.cpp -o hallo.exe
It gives:
In file included from /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/backward/iostream.h:31,
from hallo.cpp:1:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please
consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the header for the header for C++ includes, or
instead of the deprecated header . To disable this warning use -Wno-deprecated.
hallo.cpp:2:19: conio.h: No such file or directory
hallo.cpp: In function `int main()':
hallo.cpp:6: error: `clrscr' undeclared (first use this function)
hallo.cpp:6: error: (Each undeclared identifier is reported only once for each function it appears in.)
hallo.cpp:8: error: `getch' undeclared (first use this function)
Someone knows why? I tested it under borland c++ (v.5) in windows and works perfectly.
Any hint is grateful.
Gery
_________________________________________________________________
Hay tantos ordenadores como personas. ¡Descubre ahora cuál eres tú!
http://www.quepceres.com/
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple