pipedream |
August 13, 2023 07:24 |
Debian 12 and GCC 12 and OpenFOAM 2306 installation
1 Attachment(s)
I get the attached errors when compiling on Debian 12 with the default gcc 12.2.0 and OpenFOAM 2306.
Code:
physicsModel/physicsModel.C: In static member function ‘static Foam::autoPtr<Foam::physicsModel> Foam::physicsModel::New(Foam::Time&, const Foam::word&)’:
physicsModel/physicsModel.C:115:5: error: ‘physicsModelConstructorTable’ is not a class, namespace, or enumeration
115 | physicsModelConstructorTable::iterator cstrIter =
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
physicsModel/physicsModel.C:118:9: error: ‘cstrIter’ was not declared in this scope; did you mean ‘strstr’?
118 | if (cstrIter == physicsModelConstructorTablePtr_->end())
| ^~~~~~~~
| strstr
physicsModel/physicsModel.C:130:34: error: ‘cstrIter’ was not declared in this scope; did you mean ‘strstr’?
130 | return autoPtr<physicsModel>(cstrIter()(runTime, region));
| ^~~~~~~~
| strstr
make: *** [/home/jan/0_no_backup_overwrite/OpenFOAM-v2306/wmake/rules/General/transform:38: Make/linux64GccDPInt32Opt/physicsModel/physicsModel.o] Error 1
|