On Fri, 16 May 2014 09:40:19 +0200
Johannes Ring <[email protected]> wrote:

> On Fri, May 16, 2014 at 12:38 AM, Paulo Correia <[email protected]> wrote:
> > I'm trying to compile an example from /demo/documented/poisson/cpp with
> >>g++ -I /usr/include/eigen3 main.cpp -o Poisson
> > but I get a bunch of lines starting with
> >
> > /tmp/ccsvzILI.o: In function `main':
> > main.cpp:(.text+0xae): undefined reference to 
> > `dolfin::Constant::Constant(double)'
> > main.cpp:(.text+0x10f): undefined reference to 
> > `dolfin::DirichletBC::DirichletBC(dolfin::FunctionSpace const&, 
> > dolfin::GenericFunction const&, dolfin::SubDomain const&, 
> > std::basic_string<char, std::char_traits<char>, std::allocator<char> >, 
> > bool)'
> > main.cpp:(.text+0x19e): undefined reference to 
> > `dolfin::CoefficientAssigner::operator=(dolfin::GenericFunction const&)'
> > ...
> >
> > and if I compile with
> >>g++ main.cpp -o Poisson
> > I get
> >
> > In file included from 
> > /usr/include/dolfin/multistage/dolfin_multistage.h:8:0,
> >                  from /usr/include/dolfin.h:21,
> >                  from main.cpp:34:
> > /usr/include/dolfin/multistage/PointIntegralSolver.h:25:23: fatal error: 
> > Eigen/Dense: Ficheiro ou directoria inexistente
> > compilation terminated.
> >
> > I'm using FEniCS 1.3.0, Ubuntu 12.04.4 and dolfin.h is at 
> > /usr/include/dolfin.h
> 
> You should not compile the demo like that. Use cmake and make instead:
> 
>   cd demo/documented/poisson/cpp
>   mkdir build
>   cd build
>   cmake ..
>   make
> 
> Johannes
> 

All right, now it's done :)
This was a precious help which I haven't found anywhere.

Thanks a lot,
Paulo



-- 
Paulo Correia <[email protected]>
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to