CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   Personal library compilation (

mss September 12, 2007 08:53

Hej, I have some problems add
I have some problems add my own library, during compilation the code produced a lot of errors. I think I'm missing something with files/options but, unfortunately, I could not find where the error .
I have copied the standard openFoam library to my path :

then I made some changes in Make/files:

basicThermo = basicThermo


LIB = $(FOAM_USER_LIBBIN)/libbasicThermophysicalModelsTIG

after that some changes in Make/options:
-I$(LIB_SRC)/finiteVolume/lnInclude \



I have removed the linux64Gcc4DPOpt, files with *.dep

I used this command to compile the library: wmake libso

But unfortunately, during the compilation, the code produced a lot of errors like:

basicThermo/basicThermo.C:90: error: 'mixedEnthalpyFvPatchScalarField'
cannot appear in a constant-expression
basicThermo/basicThermo.C:90: error: no matching function for call to

Do you have any hints where I might done something wrong?

Thank you in advance.

otsuki September 13, 2007 06:10

Hi, Rita In basic/ directry
Hi, Rita

In basic/ directry,
basicThermo/basicThermo.C refferes
You can confirm the dependency by investigating
basicThermo/basicThermo.dep after "wmake libso"
in basic/ directry.

The easiest way is to copy whole basic/ directry
to your user space.


All times are GMT -4. The time now is 23:42.