CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Libso - error - openfoam 11 (https://www.cfd-online.com/Forums/openfoam-programming-development/255418-libso-error-openfoam-11-a.html)

gu1 May 2, 2024 13:19

Quote:

Originally Posted by dlahaye (Post 868660)
It is hard for me to judge for me from a distance what is going on.

OpenFoam works with shared libraries https://en.wikipedia.org/wiki/Shared_library

It us therefore perfectly possible that the library compiles fine, but the executable (the solver) does not pick up the changes, simply because the solver continues to pick up the old (outdated, unmodified) libraries. This (in my very limited understanding) describe the scenario above.

My above suggestion is to find the executable, and to check which libraries are used to build the executable (the solver). The unix command ldd https://en.wikipedia.org/wiki/Ldd_(Unix) does precisely this.

An alternative approach might be to write a C++ program hello-world with a hello-master function in a library file. Not sure how this helps you (in case at all)?

Keep writing us here.

Good luck.

I'll put my solver here later...


All times are GMT -4. The time now is 18:04.