Mail Archives: djgpp/2002/02/25/01:59:53
On 25 Feb 2002, Captainpita wrote:
> I have the following messages in the output log when I compile my program,
>
> DEMO.c: In function `comport_xmit':
> DEMO.c:123: too few arguments to function `r232xmit'
> DEMO.c:123: void value not ignored as it ought to be
>
> The name of the "C" program is "DEMO.c" that has the function "comport_xmit"
> (defined within "DEMO.c") that calls a the function "r232xmit" that comes from
> a library. The function r232xmit has 3 (count'em three) arguments to it, I am
> passing 3 arguments to the function, so why do I get these messages?
Is it possible that a different prototype of r232xmit is lurking in some
header file?
Also, what compiler switches, if any, are you using in the compile
command?
- Raw text -