← Back to team overview

dolfin team mailing list archive

Re: [HG DOLFIN] Make destructor of NewParameter virtual

 

I still get the same error. I ran what you said and here is what I get. yes, -lboost_program_options is in there.

walker@box227 ~
$ pkg-config --libs dolfin
-pthread -Wl,--export-dynamic -Wl,-rpath,/home/walker/src/slepc-2.3.3/lib/linux-gnu-cxx-debug -Wl,-rpath,/home/walker/src/petsc-2.3.3-p13/lib/linux-gnu-cxx-debug -L/home/walker/src/boost_1_38_0/lib -L/usr/lib -L/lib -L/home/walker/build/lib -L/home/walker/src/slepc-2.3.3/lib/linux-gnu-cxx-debug -L/usr/lib/atlas -L/home/walker/src/petsc-2.3.3-p13/lib/linux-gnu-cxx-debug -L/usr -ldolfin -lslepc -lumfpack -lgts -llapack -lblas -lcholmod -lamd -lcolamd -lboost_program_options -lxml2 -lz -lm -lpetscts -lpetscsnes -lpetscksp -lpetscdm -lpetscmat -lpetscvec -lpetsc -lgthread-2.0 -lgmodule-2.0 -ldl -lglib-2.0

Please help.

- Shawn

On Tue, 12 May 2009, Johan Hake wrote:

On Tuesday 12 May 2009 15:02:04 Shawn Walker wrote:
I did that.  When I try to compile, it finds boost and generates the
boost.pc file.  It then gives me the same error msg.  I have no idea what
to do.

What does

 pkg-config --libs dolfin

give you after you have installed your compiled dolfin?

Is

 -lboost_program_options

there?

Johan

- Shawn

On Tue, 12 May 2009, Garth N. Wells wrote:
Try deleting scons/pkgconfig/boost.pc.

Garth

Shawn Walker wrote:
Ok, I refreshed my boost.pc, but I still get this for one of the demos:

/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for
-lc /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching
for -lc /usr/bin/ld: skipping incompatible /usr/lib/libc.a when
searching for -lc /usr/bin/ld: skipping incompatible /usr/lib/libc.so
when searching for -lc /usr/bin/ld: skipping incompatible
/usr/lib/libc.a when searching for -lc dolfin/libdolfin.so: undefined
reference to
`boost::program_options::options_description::m_default_line_length'
dolfin/libdolfin.so: undefined reference to
`boost::program_options::detail::cmdline::set_additional_parser(boost::f
unction1<std::pair<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > >, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&>)'
collect2: ld returned 1 exit status
scons: *** [demo/quadrature/cpp/demo] Error 1
scons: building terminated because of errors.
demo/quadrature/cpp/demo failed: Error 1

- Shawn

On Mon, 11 May 2009, Harish Narayanan wrote:
Shawn Walker wrote:
I removed it, but now it doesn't know where to find boost.  i.e. it
won't auto generate the boost.pc file.  I seem to remember hand
writing this, but this was so long ago that I forgot.  arghh...

Does anyone know what to do?

Try calling scons with withBoostDir=/where/your/boost/lives

Harish

_______________________________________________
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