From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,a60984b8349a1a04 X-Google-Attributes: gidfee84,public From: mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney) Subject: Re: odd compilation problem, possible compiler bug? Date: 1999/02/18 Message-ID: <7aha5c$iq0$1@node2.nodak.edu>#1/1 X-Deja-AN: 445713673 Content-Transfer-Encoding: 7bit References: <7afjk7$noe$1@node2.nodak.edu> <7agr1q$duv$1@infosun2.rus.uni-stuttgart.de> Content-Type: text/plain; charset=US-ASCII X-Complaints-To: abuse@nodak.edu X-Trace: node2.nodak.edu 919350252 19264 134.129.106.23 (18 Feb 1999 15:04:12 GMT) Organization: North Dakota Higher Education Computing Network (NDHECN) Mime-Version: 1.0 NNTP-Posting-Date: 18 Feb 1999 15:04:12 GMT Newsgroups: comp.unix.osf.osf1 In article <7agr1q$duv$1@infosun2.rus.uni-stuttgart.de>, Stefan Schwarzer wrote: > Tim Mooney wrote: > > > cc: Error: util.c, line 415: In this statement, "tmpfilename" is not declared. > > __IDL_tmp_filename = tmpfilename; > > -----------------------------^ > > > The thing is, as far as I can tell `tmpfilename' *is* defined in > > the same scope; it's used in several places in the code above this point > > without error. It's not a conditional compilation problem; > > > I checked the 6.0 version of the c compiler (beta) and it gives the same > message. I looked into the code and I think the compiler is right. > tmpfilename is defined in the function IDL_parse_filename(...) > right above IDL_pare_filename_with_input(...) where the error occurs in which > as the compiler rightly claims, no 'tmpfilename' can be found. > I am afraid that it's a bug in the sources (but it seems that one can just > take the offending statements to fix it.) You're right, and it's obvious now that you pointed it out. ;-) I'm not sure what I was doing the night I was trying to get this to compile, but at this point the error is clearly in the code. Thanks Tim -- Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu Information Technology Services (701) 231-1076 (Voice) Room 242-J1, IACC Building (701) 231-8541 (Fax) North Dakota State University, Fargo, ND 58105-5164