[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hpux-cxx-dev
Subject:    RE: CXX-DEV: error in /opt/aCC/include_std/rw/iterator
From:       "Ian P. Springer" <ips () fpk ! hp ! com>
Date:       2000-11-21 0:03:53
[Download RAW message or body]

Hi Xiaohua,

No, I didn't have -DSP_HAVE_TYPENAME, and adding it did get rid of the error.
Thanks!

Ian

P.S.  In case anyone is interested, I also had to add -DSP_DEFINE_TEMPLATES in
order to get SP to compile.  Here are the changes I had to make to the default
Makefile:

4c4,5
< prefix=/opt/local
---
> #prefix=/opt/local
> prefix=/usr/local
16c17,18
< CXX=c++ -fno-implicit-templates -O2
---
> #CXX=c++ -fno-implicit-templates -O2
> CXX=aCC
36c38,40
< XDEFINES=
---
> #XDEFINES=
>
XDEFINES=-DSP_HAVE_LOCALE -DSP_HAVE_SOCKET -DSP_HAVE_TYPENAME -DSP_DEFINE_TEMPLA
TES
> #-DSP_MANUAL_INST
38c42,43
< CXXFLAGS=-ansi $(DEBUG) $(WARN)
---
> #CXXFLAGS=-ansi $(DEBUG) $(WARN)
> CXXFLAGS=-AA -fast $(DEBUG) $(WARN)

>
>Do you have -DSP_HAVE_TYPENAME on your command line?
>
>--
>----------------------------
>Xiaohua Zhang (zhang@cup.hp.com)
>Hewlett-Packard
>(408)-447-3247
>
>"Ian P. Springer" wrote:
>>
>> Hi,
>>
>> I'm trying to build the SP SGML utilities (see
>http://www.jclark.com/sp/) using
>> aCC C.03.27.  I'm using the -AA option for full ANSI support.
>>
>> I get the following error:
>>
>> make
>> make[1]: Entering directory `/tmp/sp-1.3.4'
>> make[2]: Entering directory `/tmp/sp-1.3.4/lib'
>> aCC -fast -AA   -I. -I./../include -I./../generic -DSP_HAVE_BOOL
>-DSP_ANSI_CLASS
>> _INST -DSP_MULTI_BYTE   -c PosixStorage.cxx
>> Error 419: "/opt/aCC/include_std/rw/iterator", line 99 # 'value_type' is used
>>     as a type, but has not been defined as a type.
>>         typedef _TYPENAME _Iterator::value_type        value_type;
>>                                      ^^^^^^^^^^
>> Error 922: "/opt/aCC/include_std/rw/iterator", line 99 # Incomplete type not
>>     allowed.
>>         typedef _TYPENAME _Iterator::value_type        value_type;
>>                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> make[2]: *** [PosixStorage.o] Error 2
>> make[2]: Leaving directory `/tmp/sp-1.3.4/lib'
>> make[1]: *** [lib] Error 2
>> make[1]: Leaving directory `/tmp/sp-1.3.4'
>> make: *** [all] Error 2
>>
>> Is this is a bug in the compiler or the iterator header file that needs to be
>> fixed?  If not, what do I need to do to make it go away?
>>

 _________________________________________________________________
 To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
    with the message UNSUBSCRIBE cxx-dev
 _________________________________________________________________

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic