CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Compiling a porousZone-like library

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 8, 2012, 07:08
Default Compiling a porousZone-like library
  #1
Senior Member
 
Hisham's Avatar
 
Hisham Elsafti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 257
Blog Entries: 10
Rep Power: 16
Hisham is on a distinguished road
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
and the "options" file
Code:
EXE_INC = \
    -I$(LIB_SRC)/finiteVolume/lnInclude \
    -I$(LIB_SRC)/triSurface/lnInclude \
    -I$(LIB_SRC)/meshTools/lnInclude

LIB_LIBS = \
    -lOpenFOAM \
    -ltriSurface \
    -lmeshTools
The error I keep getting (only for the soilZones lib) is:
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$
Using Google this error seems to be related to "Make". Also, soilZone.C:4 is a comment line.

Thanks in advance for your help!
Best regards,
Hisham Elsafti
Hisham is offline   Reply With Quote

Old   March 8, 2012, 10:49
Default
  #2
Senior Member
 
Hisham's Avatar
 
Hisham Elsafti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 257
Blog Entries: 10
Rep Power: 16
Hisham is on a distinguished road
Stupid mistake ... extra "\" after soilZone.C in "files" ...

Nevertheless .... it compiles now
Hisham is offline   Reply With Quote

Reply

Tags
compile, libso, make, porouszones, wmake

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 12:25.