I am using GCC 4.9 on ubuntu 15.04. I am coding in eclipse CDT. This is program C with a dialect set to c99. For some reason, my compiler warns me about this ...
warning: implicit declaration of function βposix_memalignβ [-Wimplicit-function-declaration]
I do not know why. At my #include<stdlib.h>top, and when I use eclipse, ctrl + click posix_memalign returns me to the function declaration in stdlib.h. Why am I getting this warning?
I just tried changing dialext to std = gnu99 and this fixed the problem. Is posix_memalign not included in c99?
source
share