:: Re: [DNG] Pointer error in the back…
Página Inicial
Delete this message
Reply to this message
Autor: KatolaZ
Data:  
Para: KatolaZ
CC: dng, aitor_czr
Assunto: Re: [DNG] Pointer error in the backend of Netman
On Thu, Dec 10, 2015 at 04:11:27PM +0000, KatolaZ wrote:

[cut]

>
> with
>
> $ gcc -std=c99 reference.c
>
> this is what I obtain:
>
> reference.c:3:16: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token
>  void myfun(int &a){
>                 ^
> reference.c: In function ‘main’:
> reference.c:13:4: warning: implicit declaration of function ‘myfun’ [-Wimplicit-function-declaration]
>     myfun(a);
>     ^

>
> So my version of gcc apparently does not know about this feature
> included in the ANSI C99 standard....
>


And apparently they haven't fixed the "bug" while implementing the C11
standard, either...

katolaz@%%%%%%:~/test$ gcc -std=c11 reference.c 
reference.c:3:16: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token
 void myfun(int &a){
                ^
reference.c: In function ‘main’:
reference.c:13:4: warning: implicit declaration of function ‘myfun’ [-Wimplicit-function-declaration]
    myfun(a);
    ^


Very strange, ain't it?

HND

KatolaZ

--
[ Enzo Nicosia aka KatolaZ --- GLUG Catania -- Freaknet Medialab ]
[ me [at] katolaz.homeunix.net -- http://katolaz.homeunix.net -- ]
[ GNU/Linux User:#325780/ICQ UIN: #258332181/GPG key ID 0B5F062F ]
[ Fingerprint: 8E59 D6AA 445E FDB4 A153 3D5A 5F20 B3AE 0B5F 062F ]