|
[Sponsors] |
February 3, 2022, 17:41 |
OpenFOAM foamNewSource compilation error
|
#1 |
New Member
Ingo
Join Date: May 2021
Posts: 6
Rep Power: 5 |
Hello
I have problems compiling a new class when i start from the Code:
foamNewSource H box foamNewSource C box Now i compiled with box.H: Code:
#ifndef box_H #define box_H #include "vector.H" namespace Foam { class box { int data_; vector uf_; public: box(); ~box(); } } #endif // ************************************************************************* // Code:
#include "box.H" box::box() : data_() {} error: ‘box’ does not name a type; did you mean ‘box_H’? (Edit: error is in the line "box::box()" ) I do not know what to do, do you have any suggestions? Best wishes Ingo Last edited by Volle; February 3, 2022 at 17:42. Reason: specified where the error was |
|
Tags |
classes, openfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] swak4foam openfoam 7 installation problem | Andrea23 | OpenFOAM Community Contributions | 1 | February 17, 2020 19:11 |
DPM udf error | haghshenasfard | FLUENT | 0 | April 13, 2016 07:35 |
Errors in UDF | shashank312 | Fluent UDF and Scheme Programming | 6 | May 30, 2013 21:30 |
Compile problem | ivanyao | OpenFOAM Running, Solving & CFD | 1 | October 12, 2012 10:31 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 21:50 |