← Back to team overview

dolfin team mailing list archive

Re: Build error

 

I'm guessing you should look for "using namespace dolfin" and "using
namespace std" somewhere, or "using std::cout" and "using
dolfin::cout".

These should never be used in header files since they may cause this
problem elsewhere.

-- 
Martin


2008/4/22, kent-and@xxxxxxxxx <kent-and@xxxxxxxxx>:
> > Good morning,
>  >
>  > Since last evening the 64-bit machine is failing building dolfin with
>  > the following error:
>
>
> What happened yesterday? Was trilinos installed ?
>
>  Kent
>
>
>
>  >
>  > c++ -o demo/fem/simple/cpp/main.o -c -Wall -pipe -ansi -DDEBUG -g -Werror
>  > -DNDEBUG -O2 -DPACKAGE_VERSION=\"0.7.2\" -DHAS_TRILINOS=1
>  > -fno-strict-aliasing -I. -I. -Idolfin -I/scratch/buildbot/local/include
>  > -I/usr/include/libxml2 -I/opt/trilinos-7/include
>  > demo/fem/simple/cpp/main.cpp
>  > demo/fem/simple/cpp/main.cpp: In function 'int main()':
>  > demo/fem/simple/cpp/main.cpp:51: error: reference to 'cout' is ambiguous
>  > /usr/include/c++/4.1.3/iostream:63: error: candidates are: std::ostream
>  > std::cout
>  > ./dolfin/log/LogStream.h:47: error:                 dolfin::LogStream
>  > dolfin::cout
>  > ...
>  > /usr/include/c++/4.1.3/ostream:498: error: candidates are: template<class
>  > _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>&
>  > std::endl(std::basic_ostream<_CharT, _Traits>&)
>  > ./dolfin/log/LogStream.h:48: error:                 dolfin::LogStream
>  > dolfin::endl
>  > scons: *** [demo/fem/simple/cpp/main.o] Error 1
>  > scons: building terminated because of errors.
>  >
>  >
>  > No changes to Logstream.h have been made since the scons transistion,
>  > neither to the demo, so I am not quite sure what is causing this. Any
>  > ideas? This only happens on the one machine.
>  >
>  > ilmar
>  > _______________________________________________
>  > DOLFIN-dev mailing list
>  > DOLFIN-dev@xxxxxxxxxx
>  > http://www.fenics.org/mailman/listinfo/dolfin-dev
>  >
>
>
>  _______________________________________________
>  DOLFIN-dev mailing list
>  DOLFIN-dev@xxxxxxxxxx
>  http://www.fenics.org/mailman/listinfo/dolfin-dev
>


References