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

How to link to fvPatchField<double>?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   January 25, 2011, 15:41
Default How to link to fvPatchField<double>?
  #1
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 8
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, 19:03
Default
  #2
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 8
mirko is on a distinguished road
Problem solved, see here
mirko is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
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 3 April 9, 2015 16:42
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 05:32
hard link mesh jojo FLUENT 5 March 15, 2006 16:40


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