Compiling C++Package classic compiler Error with TC
Posted: 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
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