If you want to cast something in a program compiled by TCC (which is NOT a C++ compiler as Basile said), you must use C style cast that works perfectly well (including, but not recommended, if compiled by a C++ compiler which *must* accept this style of cast).
X* x = ..; Y* y = (X*)x; Christian -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Basile Starynkevitch Sent: dimanche 10 janvier 2016 09:47 To: [email protected] Subject: Re: [Tinycc-devel] Problem with reinterpret_cast On 01/10/2016 09:40 AM, Ben Hutchinson wrote: > It doesn't work in TCC. Because tinycc is a C compiler, not a C++ one. And it is not realistic to consider extending tinycc to a C++11 compiler. Use GCC http://gcc.gnu.org/ or Clang http://clang.llvm.org/ if you need a C++ compiler (and use C++11 at least, not some older standard) Regards -- Basile STARYNKEVITCH http://starynkevitch.net/Basile/ email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359 8, rue de la Faiencerie, 92340 Bourg La Reine, France *** opinions {are only mine, sont seulement les miennes} *** _______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel _______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel
