Hi Kalle, Your options are: 1) Use a C compiler 2) Modify the code Implicit pointer casts that are allowed by C are not allowed by C++. Despite their many similarities, compliant C code is not always compliant C++ code. Where C and C++ part ways is often troubled waters. (Unfortuantely, C99 has widened the gap creating more troubled waters for those who have to have one foot in the C canoe, and another foot in the C++ canoe.) >Is there anyway compiler switch to make g++ ignore those errors? g++ -x c foo.cpp -o foo.o HTH, --Eljay