NO

Author Topic: found '&' expecting  (Read 7368 times)

post from old forum

  • Guest
found '&' expecting
« on: September 13, 2004, 11:48:07 PM »
This error
X.C(747): error: Syntax error; found '&' expecting ')'.

is generated from this prototype

int CheckGlobal (char *, int &);

for this function

int CheckGlobal (char *ZZ, int &varnum)
{
int hn;
int s;
hn=HashNumber(ZZ);
while(GlobalVarHash)
{
s=GlobalVarHash;
if(str_cmp(ZZ,GlobalVars.VarName)==0)
{
varnum=s;
return GlobalVars.VarType;
}
hn=imod(hn+1,MaxGlobalVars);
}
return vt_UNKNOWN;
}

Robert Wishlaw

post from old forum

  • Guest
found '&' expecting
« Reply #1 on: September 13, 2004, 11:48:29 PM »
Pelles C don't support references like C++. I *might* add it in a future version, but I don't really like them myself...

Pelle

post from old forum

  • Guest
found '&' expecting
« Reply #2 on: September 13, 2004, 11:48:53 PM »
Thank you, disregard my last bug report.

Robert Wishlaw