|
[Sponsors] |
March 21, 2013, 05:47 |
Linker Problem??
|
#1 |
Member
Join Date: Oct 2011
Posts: 37
Rep Power: 14 |
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 |
|
March 22, 2013, 13:03 |
|
#2 |
Member
Jim Knopf
Join Date: Dec 2010
Posts: 60
Rep Power: 15 |
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 |
|
April 3, 2013, 08:02 |
|
#3 |
Member
Join Date: Oct 2011
Posts: 37
Rep Power: 14 |
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 |
|
April 3, 2013, 10:58 |
|
#4 |
Member
Jim Knopf
Join Date: Dec 2010
Posts: 60
Rep Power: 15 |
Hi Peter,
sounds a bit strange, but if it works, it works. Maybe you missed a removal of .dep files or something. Greetz Jim |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |