CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

OpenFOAM foamNewSource compilation error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 3, 2022, 17:41
Default OpenFOAM foamNewSource compilation error
  #1
New Member
 
Ingo
Join Date: May 2021
Posts: 6
Rep Power: 5
Volle is on a distinguished road
Hello
I have problems compiling a new class when i start from the

Code:
foamNewSource H box
foamNewSource C box
I then removed what is optional and only get errors.
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

// ************************************************************************* //
and box.C
Code:
#include "box.H"

box::box()
:
    data_()
{}
This combination spit me only 1 error out:

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
Volle is offline   Reply With Quote

Reply

Tags
classes, openfoam


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
[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


All times are GMT -4. The time now is 16:18.