|
[Sponsors] |
March 8, 2012, 07:08 |
Compiling a porousZone-like library
|
#1 |
Senior Member
Hisham Elsafti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 257
Blog Entries: 10
Rep Power: 17 |
Dear Foamers,
I have developed a soilZone class modified from the porousZone class. I used to compile it directly with the solver (which works OK). Nevertheless, I, now, need to compile it separately as a library. I tried it but failed. I, then, copied the porousZones folder and renamed it and it compiled OK as a libporousZoneTry.so I used the following "files" file Code:
./soilZone.C \ ./soilZones.C LIB = $(FOAM_USER_LIBBIN)/libsoilZones Code:
EXE_INC = \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/triSurface/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude LIB_LIBS = \ -lOpenFOAM \ -ltriSurface \ -lmeshTools Code:
hisham@numubuntu-System-Product-Name:~/OpenFOAM/numubuntu-2.0.0/soilZones$ wclean hisham@numubuntu-System-Product-Name:~/OpenFOAM/numubuntu-2.0.0/soilZones$ wmake libso wmakeLnInclude: linking include files to ./lnInclude Making dependency list for source file soilZones.C soilZone.C:4: *** missing separator. Stop. hisham@numubuntu-System-Product-Name:~/OpenFOAM/numubuntu-2.0.0/soilZones$ Thanks in advance for your help! Best regards, Hisham Elsafti |
|
Tags |
compile, libso, make, porouszones, wmake |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problem loading UDF library in parallel cluster | Veera Gutti | FLUENT | 8 | July 26, 2016 08:24 |
compiling a new library | fusij | OpenFOAM | 0 | May 12, 2011 05:34 |
OpenFOAM141dev linking error on IBM AIX 52 | matthias | OpenFOAM Installation | 24 | April 28, 2008 16:49 |
Help! I cann't make library | Bowling | FLUENT | 5 | May 12, 2004 05:56 |
Good library to solve huge linear system | Ricardo Bonon | Main CFD Forum | 3 | May 19, 2000 07:24 |