HP3000-L Archives

October 2001, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jan Gerrit Kootstra <[log in to unmask]>
Reply To:
Jan Gerrit Kootstra <[log in to unmask]>
Date:
Wed, 31 Oct 2001 01:45:39 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (47 lines)
Peter Osborne wrote:

> Hello All,
>
> I'm not a C programmer so I'm wondering if someone who is can tell me what to
> do when I get stuff like this out of gcc:
>
> `AF_MAX' undeclared (first use in the function)
>
> and also things like:
>
> warning: implicit declaration of function `strlcpy'
>
> I'm getting lots of these and I am having a hard time finding what is
> actually causing the compile to fail, as well, I don't really think
> commenting out mass quantities of code to avoid these errors is really a good
> solution.
>
> Thanks,
> -Peter Osborne
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

Peter,


The compiler cannot determine what type of variable or function AF_MAX is
(integer, real, logical or what else it should be).

For strlcpy it does not know either, but it made a guess based on the context.
It is a warning because the guess might be wrong.

The solution I would try: declare the type of AF_MAX and strlcpy by hand.

If you need further assistance, you could send your source to me and will try to
find the errors for you.


Regards,


Jan Gerrit Kootstra

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2