CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   How to link to fvPatchField<double>? (http://www.cfd-online.com/Forums/openfoam-programming-development/84297-how-link-fvpatchfield-double.html)

mirko January 25, 2011 15:41

How to link to fvPatchField<double>?
 
Hi,

I am trying to recompile an OF PatchField, and I am getting a bunch of `undefined reference' errors:

Code:

(.text+0x20): undefined reference to `main'
Make/linux64GccDPOpt/oscillatingFixedValueFvPatchFields.o: In function `global constructors keyed to oscillatingFixedValueFvPatchFields.C':
oscillatingFixedValueFvPatchFields.C:(.text+0x1217): undefined reference to `Foam::fvPatchField<double>::constructpatchConstructorTables()'
oscillatingFixedValueFvPatchFields.C:(.text+0x1232): undefined reference to `Foam::fvPatchField<double>::patchConstructorTablePtr_'
oscillatingFixedValueFvPatchFields.C:(.text+0x1255): undefined reference to `Foam::fvPatchField<double>::constructpatchMapperConstructorTables()'

There is whole bunch more, related to:
Foam::fvPatchField<Foam::Vector<double>
Foam::fvPatchField<Foam::SphericalTensor<double>
Foam::fvPatchField<Foam::SymmTensor<double>

I found them in doxygen, but I cannot figure out in what library they reside.

What do I need to add to my Make/options? I have (copied from OF sources):
Code:

EXE_INC = \
        -I$(LIB_SRC)/finiteVolume/lnInclude \
    -I$(LIB_SRC)/triSurface/lnInclude \
    -I$(LIB_SRC)/meshTools/lnInclude


LIB_LIBS = \
        -lfiniteVolume \
    -ltriSurface \
    -lmeshTools

(I checked my build environment, and it looks OK)

Thanks,

Mirko

mirko January 28, 2011 19:03

Problem solved, see here


All times are GMT -4. The time now is 17:49.