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

User-defined classes compiling error

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 13, 2013, 17:46
Question User-defined classes compiling error
  #1
Member
 
Davide D.
Join Date: Oct 2012
Location: Birmingham (UK)
Posts: 44
Rep Power: 13
dav.dap83 is on a distinguished road
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.
dav.dap83 is offline   Reply With Quote

Reply

Tags
compilation error, compile, library

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
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 13:21
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 09:31
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 07:24
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 18:44
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50


All times are GMT -4. The time now is 07:44.