*BSD News Article 70667


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!asstdc.scgt.oz.au!nsw.news.telstra.net!act.news.telstra.net!vic.news.telstra.net!news.mira.net.au!news.mel.connect.com.au!munnari.OZ.AU!spool.mu.edu!sgigate.sgi.com!mr.net!winternet.com!nntp.primenet.com!news.mathworks.com!newsfeed.internetmci.com!btnet!zetnet.co.uk!dispatch.news.demon.net!demon!jraynard.demon.co.uk!not-for-mail
From: james@jraynard.demon.co.uk (James Raynard)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: called object in not a function?
Date: 10 Jun 1996 18:11:19 -0000
Organization: A FreeBSD Box
Lines: 29
Message-ID: <4phog7$6s8@jraynard.demon.co.uk>
References: <4ph4m1$mtv@ccshst05.uoguelph.ca>
NNTP-Posting-Host: localhost.demon.co.uk
X-NNTP-Posting-Host: jraynard.demon.co.uk

In article <4ph4m1$mtv@ccshst05.uoguelph.ca>,
Brian Beharry <bbeharry@uoguelph.ca> wrote:
>
>	What could it mean and what should I do when my BSD "C" compiler says:

Actually, FreeBSD doesn't have a special C compiler, just a customised
version of the GNU one.

>			main.c:88: called object is not a function

Do you have a prototype for the function in scope? Do you also have a
variable of the same name as the function?

>	I don't understand what that means, but this is the function it's
>talking about:
>	
>		void List(int Number, FILE Infile, FILE Outfile, int Fields);

Hmm, that looks OK as a function prototype (although using a FILE
value instead of a pointer to one is a bit unconventional). My guess
is that you've made a mistake somewhere else (like leaving out a
semi-colon or a bracket) and confused the compiler. Although gcc
usually handles this kind of thing fairly well.

-- 
James Raynard, Edinburgh, Scotland
james@jraynard.demon.co.uk
jraynard@FreeBSD.ORG