Compiling C++Package classic compiler Error with TC

TwineCompile - Cut C++Builder compile times by up to 50x!
Post Reply
Remco
Posts: 3
Joined: Wed Nov 10, 2021 4:05 am

Compiling C++Package classic compiler Error with TC

Post by Remco » Wed Nov 10, 2021 4:12 am

These errors only occur when using Twine Compile. When using bcc32 without TC, everything is OK.
version 11.0 CPPB
[C++ Error] iosfwd(385, 25): E2238 Multiple declaration for 'char_traits<wchar_t>::int_type'
[C++ Error] iosfwd(136, 25): E2344 Earlier declaration of 'char_traits<wchar_t>::int_type'
[C++ Error] iosfwd(391, 3): E2238 Multiple declaration for 'char_traits<wchar_t>::assign(wchar_t &,const wchar_t &)'
[C++ Error] iosfwd(141, 3): E2344 Earlier declaration of 'char_traits<wchar_t>::assign(wchar_t &,const wchar_t &)'
[C++ Error] iosfwd(396, 3): E2238 Multiple declaration for 'char_traits<wchar_t>::eq(const wchar_t &,const wchar_t &)'
[C++ Error] iosfwd(146, 3): E2344 Earlier declaration of 'char_traits<wchar_t>::eq(const wchar_t &,const wchar_t &)'
[C++ Error] iosfwd(401, 3): E2238 Multiple declaration for 'char_traits<wchar_t>::lt(const wchar_t &,const wchar_t &)'
[C++ Error] iosfwd(151, 3): E2344 Earlier declaration of 'char_traits<wchar_t>::lt(const wchar_t &,const wchar_t &)'
[C++ Error] iosfwd(407, 3): E2238 Multiple declaration for 'char_traits<wchar_t>::compare(const wchar_t *,const wchar_t *,unsigned int)'
[C++ Error] iosfwd(156, 3): E2344 Earlier declaration of 'char_traits<wchar_t>::compare(const wchar_t *,const wchar_t *,unsigned int)'
[C++ Error] iosfwd(414, 3): E2238 Multiple declaration for 'char_traits<wchar_t>::length(const wchar_t *)'
[C++ Error] iosfwd(167, 3): E2344 Earlier declaration of 'char_traits<wchar_t>::length(const wchar_t *)'
[C++ Error] iosfwd(421, 3): E2238 Multiple declaration for 'char_traits<wchar_t>::copy(wchar_t *,const wchar_t *,unsigned int)'
[C++ Error] iosfwd(176, 3): E2344 Earlier declaration of 'char_traits<wchar_t>::copy(wchar_t *,const wchar_t *,unsigned int)'
[C++ Error] iosfwd(429, 3): E2238 Multiple declaration for 'char_traits<wchar_t>::find(const wchar_t *,unsigned int,const wchar_t &)'
[C++ Error] iosfwd(187, 3): E2344 Earlier declaration of 'char_traits<wchar_t>::find(const wchar_t *,unsigned int,const wchar_t &)'
[C++ Error] iosfwd(436, 3): E2238 Multiple declaration for 'char_traits<wchar_t>::move(wchar_t *,const wchar_t *,unsigned int)'
[C++ Error] iosfwd(197, 3): E2344 Earlier declaration of 'char_traits<wchar_t>::move(wchar_t *,const wchar_t *,unsigned int)'
[C++ Error] iosfwd(443, 3): E2238 Multiple declaration for 'char_traits<wchar_t>::assign(wchar_t *,unsigned int,wchar_t)'
[C++ Error] iosfwd(212, 3): E2344 Earlier declaration of 'char_traits<wchar_t>::assign(wchar_t *,unsigned int,wchar_t)'
[C++ Error] iosfwd(454, 3): E2238 Multiple declaration for 'char_traits<wchar_t>::to_int_type(const wchar_t &)'
[C++ Error] iosfwd(227, 3): E2344 Earlier declaration of 'char_traits<wchar_t>::to_int_type(const wchar_t &)'
[C++ Error] iosfwd(465, 3): E2238 Multiple declaration for 'char_traits<wchar_t>::eof()'
[C++ Error] iosfwd(238, 3): E2344 Earlier declaration of 'char_traits<wchar_t>::eof()'
[C++ Error] iosfwd(486, 3): E2238 Multiple declaration for 'char_traits<char>::assign(char &,const char &)'
[C++ Error] iosfwd(141, 3): E2344 Earlier declaration of 'char_traits<char>::assign(char &,const char &)'
[C++ Error] iosfwd(491, 3): E2238 Multiple declaration for 'char_traits<char>::eq(const char &,const char &)'
[C++ Error] iosfwd(146, 3): E2344 Earlier declaration of 'char_traits<char>::eq(const char &,const char &)'
[C++ Error] iosfwd(496, 3): E2238 Multiple declaration for 'char_traits<char>::lt(const char &,const char &)'
[C++ Error] iosfwd(151, 3): E2344 Earlier declaration of 'char_traits<char>::lt(const char &,const char &)'
[C++ Error] iosfwd(502, 3): E2238 Multiple declaration for 'char_traits<char>::compare(const char *,const char *,unsigned int)'
[C++ Error] iosfwd(156, 3): E2344 Earlier declaration of 'char_traits<char>::compare(const char *,const char *,unsigned int)'
[C++ Error] iosfwd(509, 3): E2238 Multiple declaration for 'char_traits<char>::length(const char *)'
[C++ Error] iosfwd(167, 3): E2344 Earlier declaration of 'char_traits<char>::length(const char *)'
[C++ Error] iosfwd(516, 3): E2238 Multiple declaration for 'char_traits<char>::copy(char *,const char *,unsigned int)'
[C++ Error] iosfwd(176, 3): E2344 Earlier declaration of 'char_traits<char>::copy(char *,const char *,unsigned int)'
[C++ Error] iosfwd(524, 3): E2238 Multiple declaration for 'char_traits<char>::find(const char *,unsigned int,const char &)'
[C++ Error] iosfwd(187, 3): E2344 Earlier declaration of 'char_traits<char>::find(const char *,unsigned int,const char &)'
[C++ Error] iosfwd(531, 3): E2238 Multiple declaration for 'char_traits<char>::move(char *,const char *,unsigned int)'
[C++ Error] iosfwd(197, 3): E2344 Earlier declaration of 'char_traits<char>::move(char *,const char *,unsigned int)'
[C++ Error] iosfwd(538, 3): E2238 Multiple declaration for 'char_traits<char>::assign(char *,unsigned int,char)'
[C++ Error] iosfwd(212, 3): E2344 Earlier declaration of 'char_traits<char>::assign(char *,unsigned int,char)'
[C++ Error] iosfwd(549, 3): E2238 Multiple declaration for 'char_traits<char>::to_int_type(const char &)'
[C++ Error] iosfwd(227, 3): E2344 Earlier declaration of 'char_traits<char>::to_int_type(const char &)'
[C++ Error] iosfwd(560, 3): E2238 Multiple declaration for 'char_traits<char>::eof()'
[C++ Error] iosfwd(238, 3): E2344 Earlier declaration of 'char_traits<char>::eof()'
[C++ Error] xutility(346, 26): E2406 Dependent type qualifier 'bool' is not a class or struct type
[C++ Error] xutility(347, 26): E2406 Dependent type qualifier 'bool' is not a class or struct type
[C++ Error] xutility(348, 26): E2406 Dependent type qualifier 'bool' is not a class or struct type
[C++ Error] xutility(348, 26): E2228 Too many error or warning messages

jomitech
Site Admin
Posts: 2077
Joined: Wed Oct 08, 2008 12:23 am

Re: Compiling C++Package classic compiler Error with TC

Post by jomitech » Thu Nov 11, 2021 6:13 pm

This is very weird. Can you try to isolate the cause and create a test case?
Jon

Remco
Posts: 3
Joined: Wed Nov 10, 2021 4:05 am

Re: Compiling C++Package classic compiler Error with TC

Post by Remco » Mon Nov 22, 2021 3:55 am

I'm sending a test project. Win32 build with bcc32 without TC is OK. With TC it gives these errors: see atachment / ERROR folder.
Attachments
twin.zip
(71.9 KiB) Downloaded 3 times

jomitech
Site Admin
Posts: 2077
Joined: Wed Oct 08, 2008 12:23 am

Re: Compiling C++Package classic compiler Error with TC

Post by jomitech » Wed Nov 24, 2021 7:06 pm

Thank you for sending the test project. Unfortunately, it compiles with no issues for me. Are there are special steps you take that could be triggering this issue?
Jon

Remco
Posts: 3
Joined: Wed Nov 10, 2021 4:05 am

Re: Compiling C++Package classic compiler Error with TC

Post by Remco » Thu Nov 25, 2021 11:06 am

Hi Jon.
Unfortunately, there are no special steps. I have already detected this problem with the previous version (RAD 10.4. + TC5.2). Without TC, clang32 compiles without errors. I dont know what to do next.

Post Reply