dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #02382
Re: compile error
On Sun, 2006-04-09 at 19:48 -0500, Steven Frankel wrote:
> Hi. I am new to fenics. I just downloaded and installed it in the
> last
> few days. I am having a problem compiling the Poisson test case for
> dolfin (error
> message below). Something related to the c++ compiler perhaps?
This is a gcc 3.3 issue with anonymous classes. The DOLFIN demos have
been modified to avoid this error, see
http://www.fenics.org/pipermail/dolfin-dev/2006-March/002215.html. If
you grab DOLFIN 0.6.1, it should work.
> Also, can you point me to a good reference for the navier-stokes
> solver in dolfin and also some details on the LES capabilities - the
> manual did not have any information on this. Thanks.
>
Johan Hoffman is the person to help you out here.
Garth
>
> poisson $ make
> `dolfin-config --compiler` `dolfin-config --cflags` -c main.cpp
> main.cpp: In function `int main()':
> main.cpp:28: error: syntax error before `:' token
> main.cpp: At global scope:
> main.cpp:34: error: ISO C++ forbids declaration of `f' with no type
> main.cpp:37: error: syntax error before `:' token
> main.cpp:44: error: ISO C++ forbids declaration of `bc' with no type
> main.cpp:49: error: no matching function for call to `
> dolfin::Poisson::LinearForm::LinearForm(int&)'
> Poisson.h:250: error: candidates are:
> dolfin::Poisson::LinearForm::LinearForm(const
> dolfin::Poisson::LinearForm&)
> Poisson.h:441: error:
> dolfin::Poisson::LinearForm::LinearForm(dolfin::Function&)
> main.cpp:50: error: invalid conversion from `int' to
> `dolfin::PDE::Type'
> main.cpp:50: error: initializing argument 4 of `
> dolfin::PDE::PDE(dolfin::BilinearForm&, dolfin::LinearForm&,
> dolfin::Mesh&,
> dolfin::PDE::Type)'
> main.cpp:57: error: syntax error before `<<' token
> make: *** [main.o] Error 1
>
>
> --
> Steven H. Frankel
> Professor, School of Mechanical Engineering
> Purdue University
> http://ristretto.ecn.purdue.edu
Follow ups