← Back to team overview

dolfin team mailing list archive

Re: Some shared_ptr information

 

On Tuesday 20 January 2009 16:30:38 Harish Narayanan wrote:
> Johan Hake wrote:
> > I forgot to find the boost installation before calling instant in
> > ffc/jit. I assume you are on a mac and that the test I provided for boost
> > in ufc/setup.py worked?
> >
> > I will send a patch and correct this.
>
> I poked around a bit and all I needed to do was to add -I/sw/include
> (which is where my boost include folder resides) to Cflags in ufc-1.pc.

Yes, but I do not think this will be the "right" way to do this. It is only 
the swig wrapper code that is dependent on boost. The ufc.h is independent 
and should probably keep beeing so of boost.

During the form JIT compilation we parse the ufc-1.pc and use the result 
from --cflags to be able to create subclasses of the ufc classes. This is 
added when the wrapper code is compiled, and this is why it works for you as 
this will fix the dependency of boost.

Untill we explicitly let ufc-1 depend on boost, I think we should manually 
check for boost during JIT compilation. I _will_ soon add this :)


Johan


References