<HTML>
<HEAD>
<TITLE>Compiling C code with gccxml - type conversion errors</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I have the latest gccxml installed.<BR>
I am trying to compile a C source files<BR>
<BR>
I believe it is trying to treat as a C++ code and throws up some type conversion errors like<BR>
error: invalid conversion from 'char*' to 'uchar*'<BR>
<BR>
How can I force it to treat the code as C code instead of C++ code?<BR>
<BR>
Thx,<BR>
Sarvi<BR>
-----------<BR>
My gccxml_config file is as follows:<BR>
GCCXML_COMPILER="/auto/tools/latest/i686-pc-linux/bin/binos_c4.2.1-p5.mips64-octeon-linux-gcc"<BR>
GCCXML_CXXFLAGS=<BR>
<BR>
I invoke GCCXML as follows with additional command line –D and –I includes/definitions<BR>
GCCXML_CONFIG=/nobackup/sarvi/mbs-ws1/nova/gccxml_config /ws/sarvi-sjc/mytools/bin/gccxml  -fxml=ipc_ports.gccxml   ipc_ports.c<BR>
<BR>
I am seeing the following type of errors<BR>
.....<BR>
infra/spi/ipc/src/../include/ipc_posix.h:347: error: invalid conversion from 'char*' to 'uchar*'<BR>
infra/spi/ipc/src/../include/ipc_posix.h:347: error:   initializing argument 1 of 'ulong BITMASK_FIND_FIRST_SET(uchar*, ulong, ulong*)'<BR>
infra/spi/ipc/src/../include/ipc_posix.h: In function 'ulong BITMASK_FIND_FIRST_CLEAR_ULL_BE(ulonglong*, ulong, ulong*)':<BR>
infra/spi/ipc/src/../include/ipc_posix.h:364: error: invalid conversion from 'char*' to 'uchar*'<BR>
.........<BR>
infra/spi/ipc/src/../include/ipc_util.h: At global scope:<BR>
infra/spi/ipc/src/../include/ipc_util.h:97: error: expected unqualified-id before 'delete'<BR>
In file included from infra/spi/ipc/src/ipc_ports.c:28:<BR>
infra/spi/ipc/src/../include/ipc_ports.h:324: error: expected ',' or '...' before 'template'<BR>
infra/spi/ipc/src/../include/ipc_ports.h:328: error: expected ',' or '...' before 'template'<BR>
infra/spi/ipc/src/ipc_ports.c: In function 'void spi_ipc_delete_port(void*)':<BR>
infra/spi/ipc/src/ipc_ports.c:256: error: invalid conversion from 'void*' to 'spi_ipc_port_data*'<BR>
</SPAN></FONT>
</BODY>
</HTML>