Subject: Re: Why is using "inline" as a variable name a parse error for our compiler?
To: None <darykon!simmons@nwnexus.wa.com>
From: der Mouse <mouse@Collatz.McRCIM.McGill.EDU>
List: current-users
Date: 07/17/1995 09:34:04
> I'm trying to compile a pop3 server that supposedly runs on a Sun. I
> get a parse error on the following:
> char inline[4][100],*cp;
> When I change the var name to nnline I don't. Any Clues?
Well yes. NetBSD's cc is basically gcc, and in gcc "inline" is a
language keyword. Renaming the variable is perhaps the most obvious
fix. I don't know whether any include files use inline (if they do,
they should be changed to use __inline instead, because of exactly this
sort of thing); you might be able to compile with -Dinline=xinline or
some such, to rename the array.
der Mouse
mouse@collatz.mcrcim.mcgill.edu