CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

How to link to fvPatchField<double>?

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

LinkBack Thread Tools Display Modes
Old   January 25, 2011, 15:41
Default How to link to fvPatchField<double>?
Senior Member
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 10
mirko is on a distinguished road

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

(.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:

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):
        -I$(LIB_SRC)/finiteVolume/lnInclude \
    -I$(LIB_SRC)/triSurface/lnInclude \

        -lfiniteVolume \
    -ltriSurface \
(I checked my build environment, and it looks OK)


mirko is offline   Reply With Quote

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


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 5 March 13, 2016 14: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 05:32
hard link mesh jojo FLUENT 5 March 15, 2006 16:40

All times are GMT -4. The time now is 16:26.