Mail Archives: cygwin/2000/12/05/11:42:31
On Tue, Dec 05, 2000 at 07:23:10AM -0800, Tim Prince wrote:
>Check whether you have text mounts for your g++ installation. setup.exe uses binary mounts.
If this is a problem then there is something wrong with gcc. textmode/binmode problems
are supposed to be fixed in the latest version of gcc for cygwin.
cgf
>----- Original Message -----
>From: "Josh Schwartz" <josh AT reduxcom DOT com>
>To: <cygwin AT cygwin DOT com>
>Sent: Tuesday, December 05, 2000 12:12 AM
>Subject: g++ under cygwin problem
>>
>> 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 ?
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
- Raw text -