Mail Archives: djgpp/1994/01/13/16:16:09
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 |
| <pvcf AT io DOT org> |\ / \/\/ \ /| Minto Plaza, 38 Elm St, Suite 2109 |
|=========================|/-\/-/\-\/-\| Toronto, ON. M5G-2K5 (416) 977-6996 |
- Raw text -