Date: Sun, 6 Sep 1998 02:33:54 -0500 (CDT) From: JAU-BING LIN To: djgpp AT delorie DOT com Subject: Re: gcc 2.7.2.1: Won't compile | or || symbols (really!) In-Reply-To: <35f08a2b.895968@news.demon.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Sat, 5 Sep 1998 richard AT wynne DOT demon DOT co DOT uk wrote: > Just installed gcc 2.7.2.1 (from djgpp distribution). Believe it or > not, I can't get logical or bitwise OR (pipe symbol) to compile. Get > message "parse error before character 0335", 335 being the (octal) > ascii for the pipe character. For example, this won't compile: > > int main (int argc, char * argv[]) { > if((argc == 1) || (argc == 2)) { > return 1; > } else { > return o; > } > } I guess the fllowing may work without using OR int main (int argc, char * argv[]) { if (argc == 1) return 1; else if (argc == 2) return 1; else return 0; } Linus At University Of Central Oklahoma