||March 8, 2012 07:08
Compiling a porousZone-like library
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
LIB = $(FOAM_USER_LIBBIN)/libsoilZones
and the "options" file
EXE_INC = \
LIB_LIBS = \
The error I keep getting (only for the soilZones lib) is:
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.
Using Google this error seems to be related to "Make". Also, soilZone.C:4 is a comment line.
Thanks in advance for your help!