c++ bad on rtp 6.1?

I guess this is another case with ‘namespace std’

  • igor

Frank Liu wrote:

I tried to compile ddd on my rtp 6.1.
(ddd version 3.2.1, same as the version distributed). I got
tons of errors (see attached). Looks like header problem again?

Frank


Name: c.log
c.log Type: Plain Text (TEXT/PLAIN)
Encoding: BASE64

Try adding -fhonor-std -fno-builtin to your compile line.

–Todd


“Igor Kovalenko” <Igor.Kovalenko@motorola.com> wrote in message
news:3BC6291C.EDF47A1C@motorola.com

I guess this is another case with ‘namespace std’

  • igor

Frank Liu wrote:

I tried to compile ddd on my rtp 6.1.
(ddd version 3.2.1, same as the version distributed). I got
tons of errors (see attached). Looks like header problem again?

Frank

\

Name: c.log
c.log Type: Plain Text (TEXT/PLAIN)
Encoding: BASE64

Frank Liu wrote:

I tried to compile ddd on my rtp 6.1.
(ddd version 3.2.1, same as the version distributed). I got
tons of errors (see attached). Looks like header problem again?

Kind of. GCC has built in versions of various ANSI C library functions.
Dinkumware also defines these functions, unless __GCC_BUILTIN is
defined. You could also disable the built in gcc functions. So the
CFLAGS needs either a -D__GCC_BUILTIN to disable the Dinkumware versions
or a -fno-builtin to disable the GCC built in ones (which may be much
faster).

Tom

Frank Liu wrote:

thanks for the hints, now the first error goes away, but I am still
getting errors on the second file. see attached log. Any more options
that I can try?

Try to use QCC instead of using c++ …

Armin

On Thu, 11 Oct 2001, Todd Jochem wrote:

Try adding -fhonor-std -fno-builtin to your compile line.

–Todd


“Igor Kovalenko” <> Igor.Kovalenko@motorola.com> > wrote in message
news:> 3BC6291C.EDF47A1C@motorola.com> …

I guess this is another case with ‘namespace std’

  • igor

Frank Liu wrote:

I tried to compile ddd on my rtp 6.1.
(ddd version 3.2.1, same as the version distributed). I got
tons of errors (see attached). Looks like header problem again?

Frank


Name: c.log
c.log Type: Plain Text (TEXT/PLAIN)
Encoding: BASE64



\

c++ -fhonor-std -fno-builtin -DHAVE_CONFIG_H -I. -I. -I. -I ./… -isystem /opt/X11R6/include -DNDEBUG -O2 -g -W -Wall -trigraphs -c ddd.C

In file included from /usr/include/xlocale:9,
from /usr/include/xiosbase:4,
from /usr/include/streambuf:4,
from /usr/include/xlocnum:8,
from /usr/include/ios:4,
from /usr/include/ostream:4,
from /usr/include/istream:4,
from /usr/include/iostream.h:4,
from strclass.h:412,
from ddd.h:36,
from ddd.C:138:
/usr/include/xlocinfo: In method struct std::_Ctypevec std::_Locinfo::_Getctype() const': /usr/include/xlocinfo:87: warning: missing initializer for member std::_Ctypevec::_Tolotab’
/usr/include/xlocinfo:87: warning: missing initializer for member std::_Ctypevec::_Touptab' /usr/include/xlocinfo:87: warning: missing initializer for member std::_Ctypevec::_Delfl’
/usr/include/xlocinfo: In function size_t std::_LStrxfrm<char>(char *, char *, const char *, const char *, const std::_Collvec *)': /usr/include/xlocinfo:189: warning: unused parameter char * _Last1’
/usr/include/xlocinfo: In function size_t std::_LStrxfrm<__wchar_t>(__wchar_t *, __wchar_t *, const __wchar_t *, const __wchar_t *, const std::_Collvec *)': /usr/include/xlocinfo:203: warning: unused parameter __wchar_t * _Last1’
In file included from ddd.h:36,
from ddd.C:138:
strclass.h: At top level:
strclass.h:456: use of string' is ambiguous strclass.h:451: first declared as class string’ here
/usr/include/xstring:1097: also declared as typedef class std::basic_string<char,std::char_traits<char>,std::allocator<char> > std::string' here strclass.h:460: syntax error before &’
strclass.h:465: parse error before &' strclass.h:466: parse error before &’
strclass.h:476: parse error before &' strclass.h:476: subString::operator =(…)’ must take exactly one argument
strclass.h:484: parse error before `&’
strclass.h:502: confused by earlier errors, bailing out

tried that, same error, though with QCC, I don’t need the -fhonor-std
-fno-builtins options anymore. But then, QCC complains some other g++
options not supported (like -isystem -trigraph, etc as seen in my last
log.

frank

On Mon, 15 Oct 2001, Armin wrote:

Frank Liu wrote:

thanks for the hints, now the first error goes away, but I am still
getting errors on the second file. see attached log. Any more options
that I can try?

Try to use QCC instead of using c++ …

Armin



On Thu, 11 Oct 2001, Todd Jochem wrote:

Try adding -fhonor-std -fno-builtin to your compile line.

–Todd


“Igor Kovalenko” <> Igor.Kovalenko@motorola.com> > wrote in message
news:> 3BC6291C.EDF47A1C@motorola.com> …

I guess this is another case with ‘namespace std’

  • igor

Frank Liu wrote:

I tried to compile ddd on my rtp 6.1.
(ddd version 3.2.1, same as the version distributed). I got
tons of errors (see attached). Looks like header problem again?

Frank


Name: c.log
c.log Type: Plain Text (TEXT/PLAIN)
Encoding: BASE64



\

c++ -fhonor-std -fno-builtin -DHAVE_CONFIG_H -I. -I. -I. -I ./… -isystem /opt/X11R6/include -DNDEBUG -O2 -g -W -Wall -trigraphs -c ddd.C

In file included from /usr/include/xlocale:9,
from /usr/include/xiosbase:4,
from /usr/include/streambuf:4,
from /usr/include/xlocnum:8,
from /usr/include/ios:4,
from /usr/include/ostream:4,
from /usr/include/istream:4,
from /usr/include/iostream.h:4,
from strclass.h:412,
from ddd.h:36,
from ddd.C:138:
/usr/include/xlocinfo: In method struct std::_Ctypevec std::_Locinfo::_Getctype() const': /usr/include/xlocinfo:87: warning: missing initializer for member std::_Ctypevec::_Tolotab’
/usr/include/xlocinfo:87: warning: missing initializer for member std::_Ctypevec::_Touptab' /usr/include/xlocinfo:87: warning: missing initializer for member std::_Ctypevec::_Delfl’
/usr/include/xlocinfo: In function size_t std::_LStrxfrm<char>(char *, char *, const char *, const char *, const std::_Collvec *)': /usr/include/xlocinfo:189: warning: unused parameter char * _Last1’
/usr/include/xlocinfo: In function size_t std::_LStrxfrm<__wchar_t>(__wchar_t *, __wchar_t *, const __wchar_t *, const __wchar_t *, const std::_Collvec *)': /usr/include/xlocinfo:203: warning: unused parameter __wchar_t * _Last1’
In file included from ddd.h:36,
from ddd.C:138:
strclass.h: At top level:
strclass.h:456: use of string' is ambiguous strclass.h:451: first declared as class string’ here
/usr/include/xstring:1097: also declared as typedef class std::basic_string<char,std::char_traits<char>,std::allocator<char> > std::string' here strclass.h:460: syntax error before &’
strclass.h:465: parse error before &' strclass.h:466: parse error before &’
strclass.h:476: parse error before &' strclass.h:476: subString::operator =(…)’ must take exactly one argument
strclass.h:484: parse error before `&’
strclass.h:502: confused by earlier errors, bailing out
\