c compile error on implicit declaration

Juhász Ádám jadaml at gmail.com
Wed Dec 11 00:23:06 PST 2013


Usually this means, that you (in the code) forgot to include a header for
(in this case) "sym_forget()" system function, but the compiler recognised
which header you forgot to include and got it covered for you. This its
only a warning and you can ignore it but should consider this to fix this
in your code for higher compatibility with the c language and to avoid
errors caused by this, like it didn't imported the right header for
instance.
Is this your "c code", a library you've downloaded or is this gcc as in the
c compiler?
2013.12.11. 8:26 ezt írta ("Gmail" <yangzf01 at gmail.com>):

> Hi all
>
> I am trying to compile the c code and got the following error.
>
> cc -DIWORDSIZE=4 -DMAX_HISTORY=25 -DNMM_CORE=0  -c -g  registry.c
> registry.c:60:3: warning: implicit declaration of function 'sym_forget' is
> invalid in C99 [-Wimplicit-function-declaration]
>   sym_forget() ;
>   ^
>
> Do anybody have any ideas on it?
>
> Thank you
> Bruce
>
>
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/macports-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-users/attachments/20131211/97ed0e06/attachment.html>


More information about the macports-users mailing list