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 *
|