| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| Reply-To: | <josh AT reduxcom DOT com> |
| From: | "Josh Schwartz" <josh AT reduxcom DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| Subject: | g++ under cygwin problem |
| Date: | Tue, 5 Dec 2000 10:12:37 +0200 |
| Message-ID: | <33D717F415B9D311AE13009027DCECA101700E@REDUXSERVER1> |
| MIME-Version: | 1.0 |
| X-Priority: | 3 (Normal) |
| X-MSMail-Priority: | Normal |
| X-Mailer: | Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) |
| Importance: | Normal |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2314.1300 |
Hi
I'm using g++ under cygwin. I've tried to compile the following simple
program:
#include <iostream.h>
int main() {
cout << "hello, world!";
; return 0; }
However I get the following error:
/temp/test> g++ -o test test.C
In file included from
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3/streambuf.h
:36,
from
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3/iostream.h:
31,
from test.C:1:
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3/libio.h:303
: parse error before `->'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3/libio.h:303
: stray '\' in program
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3/libio.h:306
: stray '\' in program
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3/libio.h:307
: stray '\' in program
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3/libio.h:311
: stray '\' in program
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3/libio.h:312
: stray '\' in program
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3/libio.h:327
: parse error before `->'
In file included from
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3/iostream.h:
31,
from test.C:1:
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3/streambuf.h
:397: stray '\' in program
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3/streambuf.h
: In method `int streambuf::sbumpc()
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3/streambuf.h
:396: implicit declaration of functi
_IO_getc(...)'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3/streambuf.h
: In method `int streambuf::sgetc()'
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/g++-3/streambuf.h
:397: `return' with no value, in fun
turning non-void
I assume that I simply have a setup problem. Any ideas on why this is happening ?
Thanks in advance.
Joshua Schwartz
josh AT reduxcom DOT com <mailto:josh AT reduxcom DOT com>
-----------------------------------------
Joshua Schwartz
Redux Communications LTD.
josh AT reduxcom DOT com
Tel: +972-8-9731114 EXT: 30
Fax: +972-8-9720579
-----------------------------------------
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |