Hello, Inline::C automatically includes some header files, one of which has typedef conflicts with my custom definition(see bellow). Is there some way to disable inclusion of certain system header files? Thanks in advance.
Thanks, K.C. $ cat inline.pl #!/usr/bin/perl use Inline C; hello_inline(); __END__ __C__ typedef int U8; // just for demo void hello_inline( ) { printf( "Hello World. Best Regards from Inline\n" ); } $ ./inline.pl /usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap inline_pl_1ecd.xs > inline_pl_1ecd.xsc && mv inline_pl_1ecd.xsc inline_pl_1ecd.c gcc -c -I/home/kwchen/tmp -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"0.00\" -DXS_VERSION=\"0.00\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE" inline_pl_1ecd.c inline_pl_1ecd.xs:6: error: conflicting types for ‘U8’ /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/handy.h:148: error: previous declaration of ‘U8’ was here make: *** [inline_pl_1ecd.o] Error 1 A problem was encountered while attempting to compile and install your Inline C code. The command that failed was: make > out.make 2>&1 The build directory was: /home/kwchen/tmp/_Inline/build/inline_pl_1ecd To debug the problem, cd to the build directory, and inspect the output files. at ./inline.pl line 0 INIT failed--call queue aborted.