Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-Id: <4.3.1.2.20001205104714.020c4b78@pop.ma.ultranet.com> X-Sender: lhall AT pop DOT ma DOT ultranet DOT com X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Tue, 05 Dec 2000 10:48:00 -0500 To: , From: "Larry Hall (RFK Partners, Inc)" Subject: Re: g++ under cygwin problem In-Reply-To: <33D717F415B9D311AE13009027DCECA101700E@REDUXSERVER1> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 03:12 AM 12/5/2000, Josh Schwartz wrote: >I'm using g++ under cygwin. I've tried to compile the following simple >program: > >#include >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. Apparently since this works fine for me. Make sure your installation is up-to-date and try again. Larry Hall lhall AT rfk DOT com RFK Partners, Inc. http://www.rfk.com 118 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com