This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Strange error: Invalid option `-undef'


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]