CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM CC Toolkits for Fluid-Structure Interaction (https://www.cfd-online.com/Forums/openfoam-cc-toolkits-fluid-structure-interaction/)
-   -   [solids4Foam] Debian 12 and GCC 12 and OpenFOAM 2306 installation (https://www.cfd-online.com/Forums/openfoam-cc-toolkits-fluid-structure-interaction/251386-debian-12-gcc-12-openfoam-2306-installation.html)

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


pipedream August 16, 2023 13:24

Fixed in https://www.cfd-online.com/Forums/op...tml#post855145

bigphil August 18, 2023 12:31

See https://github.com/solids4foam/solids4foam/pull/60


All times are GMT -4. The time now is 13:53.