Re: implicit casts in g++

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux