CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   User-defined classes compiling error (http://www.cfd-online.com/Forums/openfoam-programming-development/119305-user-defined-classes-compiling-error.html)

dav.dap83 June 13, 2013 17:46

User-defined classes compiling error
 
Dear all,

I am trying to develop a modified version of some Lagrangian classes, namely Cloud, KinematicCloud, CollidingCloud and also the derived basicKinematicCollidingCloud. I placed the source files in $WM_PROJECT_USER_DIR/src. Then I added the following line to $WM_PROJECT_DIR/wmake/Makefile:

Code:

LIB_USER_SRC      = $(WM_PROJECT_USER_DIR)/src
I included a modified library to the C file of a solver I developed via #include command, and added the following lines to the Make/options file:

Code:

-I$(LIB_USER_SRC)/lagrangian/basic/lnInclude \
-I$(LIB_USER_SRC)/lagrangian/intermediate/lnInclude \

When I compile the solver, it rises the following error:

Code:

In file included from /Users/Davide/Documents/Davide-2.2.0/src/lagrangian/intermediate/lnInclude/basicKinematicCollidingCloud.H:35:0,
                from interParcelFoam.C:48:
/Users/Davide/Documents/Davide-2.2.0/src/lagrangian/basic/lnInclude/Cloud.H:73:17: error: expected class-name before ',' token

that is: the modified file Cloud.H includes cloud.H the compiler succeeds in finding this file since no error is risen. However, it seems it does not read its content.


All times are GMT -4. The time now is 19:41.