Strange error: Invalid option `-undef'

Mumit Khan khan@NanoTech.Wisc.EDU
Wed Mar 1 09:27:00 GMT 2000


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



More information about the Cygwin mailing list