[MPlayer-users] Compilation error 'conflicting types for 'swab'
turbos10
turbos11 at gmail.com
Tue Apr 19 23:03:23 CEST 2011
On 4/19/11, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> Sorry, that was not exactly what I asked:
> Does it still work if you replace "_XOPEN_SOURCE 600" with "A A"?
> (Is the _XOPEN_SOURCE define necessary?)
Works with "A A"
============ Checking for swab() ============
#define A A
#include <string.h>
int main(void) { int a, b; swab(&a, &b, 0); return 0; }
gcc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith
-Wredundant-decls -Werror-implicit-function-declaration
-Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization
-Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -O4
-march=i486 -mtune=generic -pipe -ffast-math -fomit-frame-pointer
/tmp/mplayer-configure-22420-3744/tmp.c -I. -Iffmpeg -fno-common
-static -lwinmm -ffast-math -lws2_32 -liconv -o
/tmp/mplayer-configure-22420-3744/tmp.exe
I:/DOCUME~2/ADMINI~1/USTAWI~1/Temp/mplayer-configure-22420-3744/tmp.c:
In function 'main':
I:/DOCUME~2/ADMINI~1/USTAWI~1/Temp/mplayer-configure-22420-3744/tmp.c:3:
warning: passing argument 1 of 'swab' from incompatible pointer type
I:/DOCUME~2/ADMINI~1/USTAWI~1/Temp/mplayer-configure-22420-3744/tmp.c:3:
warning: passing argument 2 of 'swab' from incompatible pointer type
Result is: yes
##########################################
More information about the MPlayer-users
mailing list