This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

C++ script doesn't work using g++

I have a simple script:

int main()

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 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.

Hay tantos ordenadores como personas. ¡Descubre ahora cuál eres tú!

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]