[so] Depunctare warning

Maximilian Machedon maximilian.machedon at gmail.com
Fri Feb 1 18:02:24 EET 2008


Verifica daca ai inclus header-ul necesar.

http://linux.die.net/man/3/posix_memalign

"Everybody agrees that *posix_memalign*() is declared in
<stdlib.h<http://linux.die.net/include/stdlib.h>>.
In order to declare it, glibc needs _GNU_SOURCE defined, or _XOPEN_SOURCE
defined to a value not less than 600."

2008/2/1 Alexandru-Mihai Carp <carpalex at gmail.com>:

> Salut,
>
> La tema 5, imi apare urmatorul mesaj pe site:
>
> -1: compilarea a produs 1 warning-uri
>
>
> iar mai jos:
>
> tema5.c:350: warning: implicit declaration of function "posix_memalign"
>
>
> Asta inseamna ca mi se va scadea un punct din cauza acelui warning?
>
> Oricum, cand compilez pe sistemul meu, nu primesc warning nici macar cu
> -Wextra. Am folosit functia "posix_memalign", pentru ca in pagina de
> manual scria ca functia "memalign" este obsolete.
>
> _______________________________________________
> so mailing list
> so at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/so/attachments/20080201/542b3484/attachment.htm


More information about the so mailing list