bug-cgicc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-cgicc] aCC compiler error with namespace


From: Adam Fanello
Subject: [bug-cgicc] aCC compiler error with namespace
Date: Thu, 22 Aug 2002 11:34:50 -0700

Incompatiblity with HP's aCC version B3910B A.03.33.

Error message, system information, and solution below:

--------------------------------------------------

The HP-UX aCC compiler complains:

/bin/sh ../libtool --mode=compile aCC -DHAVE_CONFIG_H -I. -I. -I. -I.. -I..    -g -c MStreamable.cpp
rm -f .libs/MStreamable.lo
aCC -DHAVE_CONFIG_H -I. -I. -I. -I.. -I.. -g -c MStreamable.cpp  +Z -DPIC -o .libs/MStreamable.lo
Error (future) 600: "MStreamable.cpp", line 32 # Type specifier is omitted;
    "int" is no longer assumed.
                       const MStreamable& obj)
                       ^^^^^                 
Error 22: "MStreamable.cpp", line 32 # Syntax error.
                       const MStreamable& obj)
                                        ^    
Error 711: "MStreamable.cpp", line 31 # There is no matching declaration for
    'std::basic_ostream<char,std::char_traits<char> > &<<()' in namespace
    "namespace cgicc".
    CGICCNS operator<<(STDNS ostream& out,
    ^^^^^^^^^^^^^^^^^^                    
Error 172: "MStreamable.cpp", line 34 # Undeclared variable 'obj'.
      obj.render(out);
      ^^^            
Warning:        1 future errors were detected and ignored. Add a '+p' option to detect and fix them before they become fatal errors in a future release. Behavior of this ill-formed program is not guaranteed to match that of a well-formed program

make[1]: *** [MStreamable.lo] Error 1

--------------------------------------

Solution:

Add the CGICCNS in front of the parameter that it is complaining about:

STDNS ostream&
CGICCNS operator<<(STDNS ostream& out,
                   const CGICCNS MStreamable& obj)
                         ^^^^^^^
                         added this

--------------------------------------

support/config.guess output:
        hppa2.0w-hp-hpux11.11

uname -a
HP-UX rp2430 B.11.11 U 9000/800 897819656 unlimited-user license

-------------------------------------

configure output:

loading cache ./config.cache
checking for a BSD compatible install... support/install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles... no
checking for c++... (cached) aCC
checking whether the C++ compiler (aCC  ) works... yes
checking whether the C++ compiler (aCC  ) is a cross-compiler... no
checking whether we are using GNU C++... (cached) no
checking whether aCC accepts -g... (cached) yes
checking for a BSD compatible install... support/install-sh -c
checking host system type... hppa2.0w-hp-hpux11.11
checking build system type... hppa2.0w-hp-hpux11.11
checking for ranlib... (cached) ranlib
checking for gcc... (cached) aCC
checking whether the C compiler (aCC  ) works... yes
checking whether the C compiler (aCC  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) no
checking whether aCC accepts -g... (cached) yes
checking for non-GNU ld... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) no
checking for BSD-compatible nm... (cached) /usr/bin/nm -p
checking whether ln -s works... (cached) yes
checking whether we are using GNU C... no
checking for object suffix... o
checking for executable suffix... no
checking for aCC option to produce PIC... +Z
checking if aCC PIC flag +Z works... yes
checking if aCC supports -c -o file.o... yes
checking if aCC supports -c -o file.lo... yes
checking if aCC static flag -Wl,-a -Wl,archive works... -Wl,-a -Wl,archive
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -p output... failed
checking how to hardcode library paths into programs... relink
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... hpux11.11 dld.sl
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
loading cache ./config.cache
checking for gethostbyaddr in -lnsl... (cached) yes
checking whether to link against libstdc++... (cached) yes
checking how to run the C++ preprocessor... (cached) aCC -E
checking for sys/time.h... (cached) yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking host system type... hppa2.0w-hp-hpux11.11
checking whether the C++ compiler (aCC) supports STL... (cached) yes
checking whether the C++ compiler (aCC) supports namespaces... (cached) yes
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking for strftime... (cached) yes
checking for gettimeofday... (cached) yes
checking for uname... (cached) yes
checking whether to use gcc verbose warnings... yes
checking whether to use the cgicc namespace... yes
checking whether to enable debug logging... no
checking whether to build the cgicc demos... yes
creating ./config.status
creating Makefile
creating cgicc/Makefile
creating cgicc/CgiDefs.h
creating info/Makefile
creating demo/Makefile
creating support/Makefile
creating support/cgicc-config
creating cgicc/config.h
cgicc/config.h is unchanged

------------

I'm using cgicc-3.1.5. Old, but I checked CVS and see that only the comments in this file have ever changed.

Adam Fanello
Sr. Software Engineer
Centor Software


reply via email to

[Prev in Thread] Current Thread [Next in Thread]