delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/01/13/16:16:09

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                |
 |      <pvcf AT io DOT org>      |\ / \/\/ \ /| Minto Plaza, 38 Elm St, Suite 2109  |
 |=========================|/-\/-/\-\/-\| Toronto, ON. M5G-2K5 (416) 977-6996 |

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019