From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: Another cross-compiler problem! Date: 16 Oct 2001 14:31:10 GMT Organization: Aachen University of Technology (RWTH) Lines: 43 Message-ID: <9qhgbe$q5e$1@nets3.rz.RWTH-Aachen.DE> References: <20011016082308 DOT 12881 DOT qmail AT web9105 DOT mail DOT yahoo DOT com> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 1003242670 26798 137.226.32.75 (16 Oct 2001 14:31:10 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 16 Oct 2001 14:31:10 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com ROLAND wrote: >> To avoid that, you should supply an action for this >> rule, so Bison >> doesn't have to insert a "default action" for you: >> >> iunit: label {} >> > I'm afraid it doesn't work for me. > I also left out a part of the BSION-code. There's really not much sense left discussing this in the DJGPP newsgroup. This is strictly Bison-specific, now, so please ask any further questions in a different newsgroup. > This is the correct code: [...] No, it isn't. That's still *far* from being complete enough to be able to reproduce the problem, so nobody will be able to help you with this. > And furthermore, I now have trouble with the commands access and > stat. Access() and stat() aren't "commands", they're library functions. Please try to get your terminology right. [...] > Here is the code where things go wrong: > if (access(cnffilename, R_OK) != 0 || > stat(cnffilename, &pathstatus) != 0 || > (pathstatus.st_mode & S_IFMT) != S_IFREG) { Again, this snippet is far too small to offer any meaningful help about it. For starters, you don't give any idea what the contents and type of variable "cnffilename" might be. Only a rough guess remains possible: it could be a filename that's outright illegal on a DOS platform, e.g. a name starting with a '.', on raw DOS. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.