From: pvcf AT io DOT org Subject: Re: test.cc To: djgpp AT sun DOT soe DOT clarkson DOT edu Date: Thu, 13 Jan 1994 15:55:37 -0500 (EST) I deleted the original article too quickly... From what I recall though, I remember seeing a prototype for int ng(...); > // Hello! > // > // I'm in some trouble and I'm afraid that it's me who caused it. > // However, I'm not able to understand what's going on. > // djgpp 1.11 (maint1) complains about the lines marked with "?????": > // > // "called object is not a function" > // > // I compiled it with "gcc -Wall test.cc". > // > // Any hints? Thomas > // > // > > [...] > > int main(void) > { > int n, na, nb, ng; -------------------------^^ And then there is this. Which probably hides the function declaration. You can rename your function or the corresponding variables that are declared in main(). Perhaps more descriptive function and variable names would help in the future? ;) Sorry, couldn't resist... ....Paul -- |=========================|\-/\-\/-/\-/| CYGNUS Computer Associates Ltd. | | Paul V C Frattaroli |/_\_/\/\_/_\| Computer Consultants | | |\ / \/\/ \ /| Minto Plaza, 38 Elm St, Suite 2109 | |=========================|/-\/-/\-\/-\| Toronto, ON. M5G-2K5 (416) 977-6996 |