pleriche / FastMM4

A memory manager for Delphi and C++ Builder with powerful debugging facilities
447 stars 158 forks source link

Unable to compile FastMM4BCB using Tokyo 10.2.1 #43

Open pob2 opened 7 years ago

pob2 commented 7 years ago

Compiling FastMM4BCB using latest bcc32 ends with [bcc32 Error] typeinfo.h(154): E2367 Can't inherit RTTI class from non-RTTI base 'exception' class bad_cast : public std::exception {}; [bcc32 Error] typeinfo.h(155): E2367 Can't inherit RTTI class from non-RTTI base 'exception' class bad_typeid : public std::exception {}; plus some more errors perhaps as a consequense of these two.

What I have found out so far is that in FastMM4BCB rtti is disabled (-RT- )and then enabled (-RT) in typeinfo.h after the exception header is included.

Are there any known solutions for this ?

Regards PerOle

lazyfish commented 5 years ago

Are there any updates on this issue? Same in 10.3.2.

pob2 commented 5 years ago

Unfortunately no.

Tried it today on 10.3.2 with the same result. [bcc32 Error] typeinfo.h(154): E2367 Can't inherit RTTI class from non-RTTI base 'exception' [bcc32 Error] typeinfo.h(155): E2367 Can't inherit RTTI class from non-RTTI base 'exception' and then lots of [bcc32 Error] xlocale(664): E2238 Multiple declaration for 'codecvt<char16_t,char,int>::in(int &,const char ,const char ,const char &,char16_t ,char16_t ,char16_t &) const'

/PerOle

Från: lazyfish notifications@github.com Skickat: den 11 november 2019 09:11 Till: pleriche/FastMM4 FastMM4@noreply.github.com Kopia: Per-Ole Bjerke PerOle.Bjerke@nordicalarm.se; Author author@noreply.github.com Ämne: Re: [pleriche/FastMM4] Unable to compile FastMM4BCB using Tokyo 10.2.1 (#43)

Are there any updates on this issue? Same in 10.3.2.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/pleriche/FastMM4/issues/43?email_source=notifications&email_token=AA3BB66DXBTUARSCDYUPLZ3QTEHPPA5CNFSM4D32ICO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDV72TQ#issuecomment-552336718, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AA3BB67BLCYTKUPNOYL5XELQTEHPPANCNFSM4D32ICOQ.

bcc32 command line for "FastMM4BCB.cpp" c:\devtools\embarcadero\studio\20.0\bin\bcc32.exe -D_DEBUG;NOBDE;NO_WIN32_LEAN_AND_MEAN;;FullDebugMode -n.\Win32\Debug -IC:\DevTools\Components\QuickReport\QR6-RAD-10-3-Rio\win32\debug;c:\devtools\embarcadero\studio\20.0\include\windows\vcl; C:\DevTools\Components\vcl-styles-utils-master\Common;C:\Users\pob\Documents\Embarcadero\Studio\20.0\Imports; "C:\DevTools\Components\Gnostice\eDocEngine VCL\Lib\RAD10.3\Win32\ExpIntf";C:\Dev\Rad_Studio\Integral\Caer\Omnikey\Include; c:\devtools\embarcadero\studio\20.0\include;c:\devtools\embarcadero\studio\20.0\include\dinkumware; c:\devtools\embarcadero\studio\20.0\include\windows\crtl;c:\devtools\embarcadero\studio\20.0\include\windows\sdk; c:\devtools\embarcadero\studio\20.0\include\windows\rtl;c:\devtools\embarcadero\studio\20.0\include\windows\vcl; c:\devtools\embarcadero\studio\20.0\include\windows\fmx;C:\Users\Public\Documents\Embarcadero\Studio\20.0\hpp\Win32; C:\Users\pob\Documents\Embarcadero\Studio\20.0\CatalogRepository\JEDIVisualComponentLibraryJVCL-3.6\include\D26\win32; C:\Users\pob\Documents\Embarcadero\Studio\20.0\CatalogRepository\Abbrevia-10.4\source\hpp\Win32\Release; C:\Users\pob\Documents\Embarcadero\Studio\20.0\CatalogRepository\Orpheus-4.1\source\hpp\Win32\Debug; C:\Users\pob\Documents\Embarcadero\Studio\20.0\CatalogRepository\Orpheus-4.1\source\hpp\Win32\Release; C:\Users\pob\Documents\Embarcadero\Studio\20.0\CatalogRepository\VirtualTreeView-Rio-6.6\source\hpp\Win32\Release;"C:\DevTools\Components\TMS Component Pack";"C:\DevTools\Components\TMS Component Pack\Delphi103Rio\Win32\Release";"C:\DevTools\Components\TMS Component Pack\xlsAdapter"; "C:\DevTools\Components\Gnostice\eDocEngine VCL\Lib\RAD10.3\Win32";C:\DevTools\Components\Gnostice\Shared3\Lib\RAD10.3\Win32; "C:\DevTools\Components\Gnostice\eDocEngine VCL\Lib\RAD10.3\Win32\ExpIntf"; C:\Users\pob\Documents\Embarcadero\Studio\20.0\CatalogRepository\PNGComponents-1.3\source\hpp\Win32\Debug; C:\Users\pob\Documents\Embarcadero\Studio\20.0\CatalogRepository\PNGComponents-1.3\source\hpp\Win32\Release; C:\DevTools\Components\vcl-styles-utils-master\Common;C:\DevTools\Components\vcl-styles-utils-master\Common\delphi-detours-library; C:\DevTools\KLIB\kprocs\hpp26;C:\DevTools\KLIB\localizer\lib26;C:\DevTools\Components\IDWorks;C:\DevTools\Components\Acrobat; C:\Users\Public\Documents\Embarcadero\Studio\20.0\hpp\Win32 -y -Q -bi- -k -r- -c -C -Tkh30000 -tM -tU -tW -Vx -Ve -Hc -C8 -o.\Win32\Debug\FastMM4BCB.obj -w-par -Od -v -vi- -H=.\Win32\Debug\Caer.pch -H FastMM4BCB.cpp [bcc32 Error] typeinfo.h(154): E2367 Can't inherit RTTI class from non-RTTI base 'exception' Full parser context FastMM4BCB.cpp(59): #include FastMM4Messages.hpp FastMM4Messages.hpp(15): #include c:\devtools\embarcadero\studio\20.0\include\windows\rtl\System.hpp System.hpp(1628): #include c:\devtools\embarcadero\studio\20.0\include\windows\rtl\sysclass.h sysclass.h(38): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\iostream iostream(5): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\istream istream(5): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\ostream ostream(5): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\ios ios(5): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\xlocnum xlocnum(8): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\streambuf streambuf(5): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\xiosbase xiosbase(4): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\xlocale xlocale(7): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\typeinfo typeinfo(8): #include c:\devtools\embarcadero\studio\20.0\include\windows\crtl\typeinfo.h typeinfo.h(55): namespace std typeinfo.h(154): class bad_cast [bcc32 Error] typeinfo.h(155): E2367 Can't inherit RTTI class from non-RTTI base 'exception' Full parser context FastMM4BCB.cpp(59): #include FastMM4Messages.hpp FastMM4Messages.hpp(15): #include c:\devtools\embarcadero\studio\20.0\include\windows\rtl\System.hpp System.hpp(1628): #include c:\devtools\embarcadero\studio\20.0\include\windows\rtl\sysclass.h sysclass.h(38): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\iostream iostream(5): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\istream istream(5): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\ostream ostream(5): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\ios ios(5): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\xlocnum xlocnum(8): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\streambuf streambuf(5): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\xiosbase xiosbase(4): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\xlocale xlocale(7): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\typeinfo typeinfo(8): #include c:\devtools\embarcadero\studio\20.0\include\windows\crtl\typeinfo.h typeinfo.h(55): namespace std typeinfo.h(155): class bad_typeid [bcc32 Error] xlocale(664): E2238 Multiple declaration for 'codecvt<char16_t,char,int>::in(int &,const char ,const char ,const char &,char16_t ,char16_t ,char16_t &) const' Full parser context FastMM4BCB.cpp(59): #include FastMM4Messages.hpp FastMM4Messages.hpp(15): #include c:\devtools\embarcadero\studio\20.0\include\windows\rtl\System.hpp System.hpp(1628): #include c:\devtools\embarcadero\studio\20.0\include\windows\rtl\sysclass.h sysclass.h(38): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\iostream iostream(5): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\istream istream(5): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\ostream ostream(5): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\ios ios(5): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\xlocnum xlocnum(8): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\streambuf streambuf(5): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\xiosbase xiosbase(4): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\xlocale xlocale(15): namespace std xlocale(650): class codecvt<char16_t,char,int> [bcc32 Error] xlocale(542): E2344 Earlier declaration of 'codecvt<char16_t,char,int>::in(int &,const char ,const char ,const char &,char16_t ,char16_t ,char16_t &) const' Full parser context FastMM4BCB.cpp(59): #include FastMM4Messages.hpp FastMM4Messages.hpp(15): #include c:\devtools\embarcadero\studio\20.0\include\windows\rtl\System.hpp System.hpp(1628): #include c:\devtools\embarcadero\studio\20.0\include\windows\rtl\sysclass.h sysclass.h(38): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\iostream iostream(5): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\istream istream(5): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\ostream ostream(5): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\ios ios(5): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\xlocnum xlocnum(8): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\streambuf streambuf(5): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\xiosbase xiosbase(4): #include c:\devtools\embarcadero\studio\20.0\include\dinkumware\xlocale xlocale(15): namespace std xlocale(650): class codecvt<char16_t,char,int>