← Back to team overview

dolfin team mailing list archive

Re: issues (?) with 0.6.3

 


Dag Lindbo wrote:
>> Quoting Dag Lindbo <dag@xxxxxxxx>:
>>
>>> Hi all,
>>>
>>> Since updating to 0.6.3 I've run into
>>>
>>> 1) The install scripts do not seem to set PKG_CONFIG_PATH. I had to do
>>> export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ after installing
>>> dolfin.
>>>
>> Configure now produces a file dolfin.conf. You just need to do
>>
>>   source dolfin.conf
>>
>> This sets more that just PKG_CONFIG_PATH, so it may help with the below
>> problems.
> 
> OK. Sorry for overlooking this.
> 
>>> 2) Link problems in my solvers. In 0.6.2x the linking was fine. But now
>>> I
>>> get link errors like
>>> ClassX.cpp: multiple definition of
>>> 'dolfin::formX::BilinearForm::interior_contribution() const'
>>> (...)
>>>
>>> I have form-headers that get included all over the place, i.e.
>>> "Class1.hpp" includes "formX.h"
>>> "Class2.hpp" includes "formX.h"
>>> "Class3.hpp" includes "formX.h"
>>> and
>>> "main.cpp" includes Class1.hpp, Class2.hpp ...
>>>
>>> Why has this become a problem since 0.6.2? I guess the error is on my
>>> side, though...
>>>
>> Could be because of the problem outlined above. Have you recompiled all
>> your
>> forms with FFC?
> 
> No luck. I have recompiled all form with ffc 0.3.4.
> 
> I'm no C++ boffin, but it seems to me the the linker (g++) is getting
> confused over the fact there is code in the form headers that has been
> compiled multiple times (once for each class that uses the particular
> form)  . Did libtool do a better job at figuring this out? How do I use
> libtool?
>

Can you give a stripped down example where it goes wrong?

Garth

> /Dag
> 
>> Garth
>>
>>> Thanks a lot!
>>> Dag Lindbo
>>>
>>> _______________________________________________
>>> DOLFIN-dev mailing list
>>> DOLFIN-dev@xxxxxxxxxx
>>> http://www.fenics.org/mailman/listinfo/dolfin-dev
>>>
> 
> 



Follow ups

References