public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* C++ script doesn't work using g++
@ 2009-09-11 18:54 Gery Herbozo Jimenez
  0 siblings, 0 replies; 7+ messages in thread
From: Gery Herbozo Jimenez @ 2009-09-11 18:54 UTC (permalink / raw)
  To: cygwin-xfree, cygwin



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

^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <1252759570.17701.ezmlm@cygwin.com>]
* C++ script doesn't work using g++
@ 2009-09-11 18:49 Gery Herbozo Jimenez
  2009-09-11 19:23 ` Jeremy Bopp
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Gery Herbozo Jimenez @ 2009-09-11 18:49 UTC (permalink / raw)
  To: cygwin



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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-09-14 15:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-11 18:54 C++ script doesn't work using g++ Gery Herbozo Jimenez
     [not found] <1252759570.17701.ezmlm@cygwin.com>
2009-09-14 14:10 ` Gery Herbozo Jimenez
2009-09-14 15:36   ` Christopher Faylor
  -- strict thread matches above, loose matches on Subject: below --
2009-09-11 18:49 Gery Herbozo Jimenez
2009-09-11 19:23 ` Jeremy Bopp
2009-09-11 20:04 ` Greg Chicares
     [not found] ` <4AAAABA2.2050808@cygwin.com>
2009-09-14 14:07   ` Gery Herbozo Jimenez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).