Hi,

according to http://www.cppreference.com/cppio/index.html is cerr 
defined in <iostream> and this header will be included in plstream.cc - 
as long as this is correct there should be no problem (and never was).

The only thing which I can imagine of is that USE_NAMESPACE isn't 
defined, since cmake has problem to check that out for Apple gcc 4.0 so that

#ifdef USE_NAMESPACE
using namespace std;
#endif

namespace std will not be used, and than cerr is undefined - this is 
what we should find out. Might be a reason to start this 700Mhz Mac 
which sits in the corner (and that very slowly).

Regards,
Werner

[EMAIL PROTECTED] wrote:
> Does anyone know whether this problem building the PLplot c++  
> bindings is actually a problem with g++ 4.0.1 being more picky than  
> 4.0.0? Or has something else gone wrong?
> 
> Thanks,
> -Hazen
> 
>> Initial Comment:
>> I've run into a build error under Mac OS X 10.4.8 (both Intel and  
>> PPC):
>>
>> Making all in c++
>> if /bin/sh ../../libtool --tag=CXX --mode=compile g++ - 
>> DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../include  - 
>> I../../include -I../../libltdl   -g -O2 -MT plstream.lo -MD -MP -MF  
>> ".deps/plstream.Tpo" -c -o plstream.lo plstream.cc; \
>> then mv -f ".deps/plstream.Tpo" ".deps/plstream.Plo"; else rm -f  
>> ".deps/plstream.Tpo"; exit 1; fi
>> mkdir .libs
>>  g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../ 
>> include -I../../include -I../../libltdl -g -O2 -MT plstream.lo -MD - 
>> MP -MF .deps/plstream.Tpo -c plstream.cc  -fno-common -DPIC - 
>> o .libs/plstream.o
>> plstream.cc: In member function 'virtual void cxx_pltr2::xform 
>> (PLFLT, PLFLT, PLFLT&, PLFLT&) const':
>> plstream.cc:101: error: 'cerr' was not declared in this scope
>> make[3]: *** [plstream.lo] Error 1
>> make[2]: *** [all-recursive] Error 1
>> make[1]: *** [all-recursive] Error 1
>> make: *** [all] Error 2
>>
>> Using
>>
>> g++ --version
>> powerpc-apple-darwin8-g++-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc.  
>> build 5367)
>> Copyright (C) 2005 Free Software Foundation, Inc.

-- 
Dipl. Ing. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria

email: [EMAIL PROTECTED]
web:   http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office)
        +43-(0)1-58801-13469 (laboratory)
fax:   +43-(0)1-58801-13499

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to