|
[Sponsors] |
January 4, 2021, 16:15 |
wmake missing header files
|
#1 |
Member
Fabian Friberg
Join Date: Dec 2020
Posts: 31
Rep Power: 5 |
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 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. |
|
January 5, 2021, 13:16 |
|
#2 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Use a version such as OpenFOAM-v2012
|
|
January 5, 2021, 15:57 |
|
#3 |
Member
Fabian Friberg
Join Date: Dec 2020
Posts: 31
Rep Power: 5 |
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.
|
|
|
|
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 |