[apluslist] FW: A+ compilation errors

Rui Alberto rui-l-goncalves at ptinovacao.pt
Wed Jul 6 13:30:03 EDT 2005


Hi,
I've iostream header in my system. The problem seems to be the way
iostream header presence is checked.
When executing "./configure" the following is reported:
...
checking for new... no
checking for iostream... no
checking for iomanip... no
checking for fstream... no
checking for sstream... no
checking for iosfwd... no
...
and I know that I have iostream header installed in my system,
in: "/usr/include/c++/3.4.2/iostream"

configure.in checks for header existence like this:
AC_LANG(C++)
AC_CHECK_HEADERS(new iostream iomanip fstream sstream iosfwd)

I really don't know nothing about autoconf tools and C++, maybe there's
someone with some experience that could help?!

- A+ version:4.20-1
- gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)

Thanks,

Rui



On Wed, 2005-07-06 at 00:41 -0400, Daniel F. Fisher wrote:
> I poked around a little and googled some. The use of  "#include 
> <iostream.h>" appears to be deprecated in favor of "#include 
> <iostream>". Perhaps this will help clear things up. Alternatively, I 
> see some mention of a compiler flag to all deprecated constructions. 
> Here is one source: 
> http://r-resc.a-eskwadraat.nl/archive/att-0968/01-makeoutput2 . I am 
> also suspicious of places in the A+ source in which istream and ostream 
> are declared directly rather than relying on a #include.
> 
> Hope this helps, but I only lurk out of nostalgia.
> 
> -Dan
> 
> P.S. http://www.web-polygraph.org/mail-archive/users/200308/0000.html 
> seems to show a similar pathology.
> 
> Vladimir N. Kutinsky wrote:
> 
> >A few months ago I posted a message about compilations errors I had. I am
> >resending my message again. Hopefully, it will help to identify the problem.
> >
> >-----Original Message-----
> >From: Vladimir N. Kutinsky [mailto:kutinskyv at obninsk.com]
> >Sent: Tuesday, February 08, 2005 11:02 PM
> >To: apluslist at aplusdev.net
> >Subject: A+ compilation errors
> >
> >
> >Hello all,
> >
> >Ive just tried to compile A+(4.20-1) and ran into a problem i cant seem to
> >solve on my own. This is what i did. I 'export'ed two variables CFLAGS and
> >CXXFLAGS setting them to -O3 and ran
> >./configure --prefix=/usr/local/aplus-fsf-4.20
> >This step seems to have worked okay. Then i ran 'make install' and this is
> >when the fun started. At first, i got the following messages(a snippet of
> >the result):
> >.........
> >In file included from pA_Connection.C:33:
> >/usr/include/g++/backward/iostream.h:35: error: `ostream' is already
> >declared
> >   in this scope
> >/usr/include/g++/backward/iostream.h:35: error: using declaration `ostream'
> >   introduced ambiguous type `ostream'
> >/usr/include/g++/backward/iostream.h:36: error: `istream' is already
> >declared
> >   in this scope
> >/usr/include/g++/backward/iostream.h:36: error: using declaration `istream'
> >   introduced ambiguous type `istream'
> >make[2]: *** [pA_Connection.lo] Error 1
> >make[2]: Leaving directory `/tmp/aplus-fsf-4.20/src/IPC'
> >make[1]: *** [install-recursive] Error 1
> >make[1]: Leaving directory `/tmp/aplus-fsf-4.20/src'
> >make: *** [install-recursive] Error 1
> >
> >I commented the 33th line of "pA_Connection.C" and ran make install again.
> >This time the script worked a lot farther and even managed to create a
> >/usr/local/aplus-fsf-4.20/lib directory with a dozen of libraries there, but
> >again ended up with an error:
> >..............
> >../MSTypes/MSRate.H:87: error: `ostream' denotes an ambiguous type
> >../MSTypes/MSSymbol.H:27: error:   first type here
> >/usr/include/g++/iosfwd:64: error:   other type here
> >../MSTypes/MSRate.H:87: error: `ostream' denotes an ambiguous type
> >../MSTypes/MSSymbol.H:27: error:   first type here
> >/usr/include/g++/iosfwd:64: error:   other type here
> >make[2]: *** [AGIF.lo] Error 1
> >make[2]: Leaving directory `/tmp/aplus-fsf-4.20/src/AplusGUI'
> >make[1]: *** [install-recursive] Error 1
> >make[1]: Leaving directory `/tmp/aplus-fsf-4.20/src'
> >make: *** [install-recursive] Error 1
> >
> >What did i do wrong? Can anyone help me please?
> >
> >This is my environment:
> >SuSE Linux 9.2
> >gcc version 3.3.4 (pre 3.3.5 20040809)
> >
> >Thanks in advance,
> >Vladimir
> >
> >_______________________________________________
> >apluslist mailing list
> >apluslist at aplusdev.net
> >http://aplusdev.net/mailman/listinfo/apluslist
> >
> >
> >  
> >
> 
> 
> 
> _______________________________________________
> apluslist mailing list
> apluslist at aplusdev.net
> http://aplusdev.net/mailman/listinfo/apluslist



More information about the apluslist mailing list