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

wmake missing header files

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By lumpor

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 4, 2021, 16:15
Default wmake missing header files
  #1
Member
 
Fabian Friberg
Join Date: Dec 2020
Posts: 31
Rep Power: 5
lumpor is on a distinguished road
I'm trying to compile a solar load library released for OF3.0+ (the one announced on this page), using OF7, but wmake is having problems.


1. First, there were a few .H files it couldn't find: Enum.H, gravityMeshObject.H and some others related to src/triSurfaces.


I solved the triSurface ones by adding
Code:
-I$(LIB_SRC)/triSurface/lnInclude
to the options file under EXE_INC (although I don't know why I needed to do this).


As for Enum.H and gravityMeshObject.H, the online API guide says they should be under src/OpenFOAM/primitives /enums/Enum.H and src/finiteVolume/cfdTools/general/meshObjects/gravity/gravityMeshObject.H respectively, but my openfoam src folder seems to be missing the enums folder and the meshObjects folder


What do?



2. The compiler also thinks some functions are missing. One is .readEntry(). The API guide says this is a function belonging to foam::dictionary. The class calling the function inherits IOdictionary, so this should be no problem.


wmake also says the cfind and get functions aren't declared in this scope. Here's the full error message:
Code:
could not open file Enum.H for source file radiationModels/solarLoad/faceReflecting/faceReflecting.C due to No such file or directory
Making dependency list for source file faceShading.C
could not open file Enum.H for source file radiationModels/solarLoad/faceShading/faceShading.C due to No such file or directory
Making dependency list for source file solarLoad.C
could not open file gravityMeshObject.H for source file radiationModels/solarLoad/solarLoad.C due to No such file or directory
could not open file Enum.H for source file radiationModels/solarLoad/solarLoad.C due to No such file or directory


...


radiationModels/radiationModel/radiationModelNew.C: In static member function 'static Foam::autoPtr<Foam::radiation::radiationModel> Foam::radiation::radiationModel::New(const volScalarField&)':
radiationModels/radiationModel/radiationModelNew.C:53:29: error: 'class Foam::IOdictionary' has no member named 'readEntry'; did you mean 'readData'?
         IOdictionary(radIO).readEntry("radiationModel", modelType);
                             ^~~~~~~~~
                             readData
radiationModels/radiationModel/radiationModelNew.C:63:44: error: 'Foam::radiation::radiationModel::TConstructorTable {aka class Foam::HashTable<Foam::autoPtr<Foam::radiation::radiationModel> (*)(const Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&), Foam::word, Foam::string::hash>}' has no member named 'cfind'; did you mean 'find'?
     auto cstrIter = TConstructorTablePtr_->cfind(modelType);
                                            ^~~~~
                                            find
radiationModels/radiationModel/radiationModelNew.C: In static member function 'static Foam::autoPtr<Foam::radiation::radiationModel> Foam::radiation::radiationModel::New(const Foam::dictionary&, const volScalarField&)':
radiationModels/radiationModel/radiationModelNew.C:86:31: error: 'const class Foam::dictionary' has no member named 'get'; did you mean 'set'?
     const word modelType(dict.get<word>("radiationModel"));
                               ^~~
                               set
radiationModels/radiationModel/radiationModelNew.C:86:39: error: expected primary-expression before '>' token
     const word modelType(dict.get<word>("radiationModel"));
                                       ^
radiationModels/radiationModel/radiationModelNew.C:90:53: error: 'Foam::radiation::radiationModel::dictionaryConstructorTable {aka class Foam::HashTable<Foam::autoPtr<Foam::radiation::radiationModel> (*)(const Foam::dictionary&, const Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&), Foam::word, Foam::string::hash>}' has no member named 'cfind'; did you mean 'find'?
     auto cstrIter = dictionaryConstructorTablePtr_->cfind(modelType);
                                                     ^~~~~
                                                     find

Any help would be appreciated.
lumpor is offline   Reply With Quote

Old   January 5, 2021, 13:16
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Use a version such as OpenFOAM-v2012
olesen is offline   Reply With Quote

Old   January 5, 2021, 15:57
Default
  #3
Member
 
Fabian Friberg
Join Date: Dec 2020
Posts: 31
Rep Power: 5
lumpor is on a distinguished road
Yeah I realized this the day after that this was the problem. Feels bad to have wasted so much time searching for an answer to such a simple problem. Thanks for the reply.
olesen likes this.
lumpor is offline   Reply With Quote

Reply


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
Two phase flow in porous medium Milaad OpenFOAM 7 July 1, 2024 05:08
[OpenFOAM.org] Not found many .so files when installing OpenFOAM 6 lengjun OpenFOAM Installation 2 December 12, 2022 22:08
[OpenFOAM.org] Errors compiling OpenFOAM-5.0 renardf OpenFOAM Installation 1 January 12, 2018 08:35
UDF issue MASOUD Fluent UDF and Scheme Programming 14 December 6, 2012 13:39
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 03:01


All times are GMT -4. The time now is 05:28.