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

Linker Problem??

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 21, 2013, 05:47
Default Linker Problem??
  #1
Member
 
Join Date: Oct 2011
Posts: 37
Rep Power: 14
Peter Müller is on a distinguished road
Hi

I created a boundary condition and was able to compile and use it with OF1.5 OF1.6 and OF2.1 but I get problems since I tried to port it to OF2.2.

I want to compile an application which is using the boundary condition that I implemented but during compilation I always get the error:

OpenFOAM-2.2.x/OpenFOAM-2.2.x/platforms/linux64GccDPOpt/lib/libMPImp.so: undefined reference to `vtable for Foam::impMPPolyPatch'

OpenFOAM-2.2.x/OpenFOAM-2.2.x/platforms/linux64GccDPOpt/lib/libMPImp.so: undefined reference to `typeinfo for Foam::impMPPolyPatch'

Does anybody have an idea why this happens?

Thanks in advance
Peter
Peter Müller is offline   Reply With Quote

Old   March 22, 2013, 13:03
Default
  #2
Member
 
Jim Knopf
Join Date: Dec 2010
Posts: 60
Rep Power: 15
JimKnopf is on a distinguished road
Hi Peter,

your question is a bit difficult to answer.
Does your BC use the libMPImp in any way?
Did you include the correct libs in Make/option?
What is your BC doing?
Is the Bc compiled as a dynamic library or just included in the solver?

Best regards,
Jim
JimKnopf is offline   Reply With Quote

Old   April 3, 2013, 08:02
Default
  #3
Member
 
Join Date: Oct 2011
Posts: 37
Rep Power: 14
Peter Müller is on a distinguished road
Hi Jim

I thought its a bit tricky but I could not figure out where to start since I completely did/do not understand the problem. I created a boundary condition (a mixing plane for turbomachinery) which is compiled as a shared library named libMPImp.so.
In my solver and some utilities I need to include this boundary condition. But when I tried to compile the solver/utility I always got this error.

I do not know where the error came from. Finally I cleaned my boundary to more or less empty, compiled it and also the solver and got no error. I put in the rest piece by piece and as far as I know ended up with the same as I had before removing and now it works. No idea where the problem was. Compilation issue, directory of the libMPImp.so (FOAM_LIBBIN or FOAM_USER_LIBBIN) no idea.

Thank you anyway
Peter
Peter Müller is offline   Reply With Quote

Old   April 3, 2013, 10:58
Default
  #4
Member
 
Jim Knopf
Join Date: Dec 2010
Posts: 60
Rep Power: 15
JimKnopf is on a distinguished road
Hi Peter,

sounds a bit strange, but if it works, it works. Maybe you missed a removal of .dep files or something.

Greetz
Jim
JimKnopf is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 05:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 06:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 07:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 20:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 15:52


All times are GMT -4. The time now is 03:15.