delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Message-Id: | <200003011727.LAA03710@hp2.xraylith.wisc.edu> |
To: | Andreas =?iso-8859-1?Q?Bergstr=F8m?= <abergstr AT halden DOT net> |
cc: | Cygwin mailing list <cygwin AT sourceware DOT cygnus DOT com> |
Subject: | Re: Strange error: Invalid option `-undef' |
In-reply-to: | Your message of "Wed, 01 Mar 2000 17:59:01 +0100." |
<38BD4C55 DOT 364EEC0 AT halden DOT net> | |
Date: | Wed, 01 Mar 2000 11:27:08 -0600 |
From: | Mumit Khan <khan AT NanoTech DOT Wisc DOT EDU> |
Andreas =?iso-8859-1?Q?Bergstr=F8m?= <abergstr AT halden DOT 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 AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |