CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

How to link to fvPatchField<double>?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 25, 2011, 14:41
Default How to link to fvPatchField<double>?
  #1
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17
mirko is on a distinguished road
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 is offline   Reply With Quote

Old   January 28, 2011, 18:03
Default
  #2
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 17
mirko is on a distinguished road
Problem solved, see here
mirko is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Link faces meshes for periodic BC with ANSYS WORKBENCH mawi01 ANSYS Meshing & Geometry 5 March 13, 2016 13:10
OpenFOAM sub-forum link seems to be damaged wyldckat Site Help, Feedback & Discussions 1 September 12, 2010 04:58
methoden link to other Codefile sven82 OpenFOAM 0 October 9, 2009 05:32
ReleaseNotes13 website link problem maka OpenFOAM 2 November 22, 2006 04:32
hard link mesh jojo FLUENT 5 March 15, 2006 15:40


All times are GMT -4. The time now is 14:01.