|
[Sponsors] |
accessing multiple user-defined libraries from one .so file |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 3, 2011, 19:52 |
accessing multiple user-defined libraries from one .so file
|
#1 |
New Member
elbert
Join Date: Mar 2009
Location: USA
Posts: 10
Rep Power: 17 |
I have created a few user-defined libraries into "libmy.so" and would like to use them one at a time in application simpleFoam. Hence I refer to only "libmy.so" in the controlDict. What I notice is that only the latest built library is accessible.
Can I store more than one user library in a single .so file? Thanks, Elbert |
|
March 4, 2011, 04:09 |
|
#2 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29 |
To me it sounds like this: You have multiple folders with the Make/files specifying the same output file. Now naturally every time you run wmake libso, the linker will overwrite the last binary - it's what you told it to do. If you want to link all files into one library, you will have to write one Make/files for all of them, doing something like the following:
Code:
lib1/source1.C lib1/source2.C lib2/source2.C [...] LIB = $(FOAM_USER_LIBBIN)/mylib |
|
March 4, 2011, 12:37 |
|
#3 |
New Member
elbert
Join Date: Mar 2009
Location: USA
Posts: 10
Rep Power: 17 |
Thanks Anton! I am now able to store multiple user-defined libraries in one .so file and use them.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] swak4foam building problem | GGerber | OpenFOAM Community Contributions | 54 | April 24, 2015 16:02 |
DxFoam reader update | hjasak | OpenFOAM Post-Processing | 69 | April 24, 2008 01:24 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 14:00 |
Windows Installation BugsComments on Petrbs patch | brooksmoses | OpenFOAM Installation | 48 | April 16, 2006 00:20 |
error while compiling the USER Sub routine | CFD user | CFX | 3 | November 25, 2002 15:16 |