This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Strange error: Invalid option `-undef'
- To: Andreas Bergstrøm <abergstr at halden dot net>
- Subject: Re: Strange error: Invalid option `-undef'
- From: Mumit Khan <khan at NanoTech dot Wisc dot EDU>
- Date: Wed, 01 Mar 2000 11:27:08 -0600
- cc: Cygwin mailing list <cygwin at sourceware dot cygnus dot com>
Andreas =?iso-8859-1?Q?Bergstr=F8m?= <abergstr@halden.net> writes:
> I am getting a strange error when I try to compile a small program that I mad
> e,
> the source is as follows:
>
> // codepagechecker.cpp
> // [insert GPL]
>
> #include <iostream.h>
>
> void main(void)
^^^^
int main (void)
> {
> unsigned char Tegn1;
>
> cout << "Please enter the character you wish to use : ";
> cin >> Tegn1;
> cout << "\nYou entered: " << Tegn1 << ", which is decimal " << (int)Teg
> n1;
> cout << " and hexadecimal " << hex << (int)Tegn1 << ".";
> }
>
> Here's all the output bash and cpp provided me with:
>
> BASH.EXE-2.02$ g++ codepagechecker.cpp -o codepagechecker.exe
> cpp: Invalid option `-undef'
Means you have an older cpp somewhere and things are getting confused.
Please post the output of the following:
BASH.EXE-2.02$ g++ codepagechecker.cpp -o codepagechecker.exe -v
Upgrade to gcc-2.95.2 if you're not already running that. See
http://www.xraylith.wisc.edu/~khan/software/gnu-win32/
Regards,
Mumit
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com