Problem with compilation wmake
- Post By Oscar Zagal
- 3 months ago
- Post Type Public
Hi everyone
I´m trying to create another equation of state model based on Bussinesq, but when i write "wmake" the next set of errors and warnings are printed in the terminal of OF4Win 20.09:
Making dependency list for source file rhoCCP.C
x86_64-w64-mingw32-g++ -m64 -std=c++11 -Dcygwin64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -DMSWIN -DLITTLE_ENDIAN -DMSWIN -DLITTLE_ENDIAN -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-dev/src/transportModels/compressible/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/thermophysicalModels/specie/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/thermophysicalModels/thermophysicalProperties/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/meshTools/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-dev/src/OSspecific/MSWindows/lnInclude -c rhoCCP.C -o /opt/OpenFOAM/OpenFOAM-dev/platforms/cygwin64mingw-w64DPInt32Opt/cygdrive/c/OpenFOAM/20.09/cygwin64/src/thermophysicalModels/specie/equationOfState/rhoCCP/rhoCCP.o
In file included from rhoCCP.H:241,
from rhoCCP.C:26:
rhoCCP.C: In constructor ‘Foam::rhoCCP<Specie>::rhoCCP(const Foam::dictionary&)’:
rhoCCP.C:38:11: warning: invalid use of incomplete type ‘const class Foam::dictionary’
38 | rho0_(dict.subDict("equationOfState").lookup<scalar>("rho0")),
| ^~~~
In file included from /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/db/error/error.H:51,
from /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/autoPtrI.H:26,
from /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/autoPtr.H:148,
from rhoCCP.H:47,
from rhoCCP.C:26:
/opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/db/error/messageStream.H:63:7: note: forward declaration of ‘class Foam::dictionary’
63 | class dictionary;
| ^~~~~~~~~~
In file included from rhoCCP.H:241,
from rhoCCP.C:26:
rhoCCP.C:38:56: error: expected primary-expression before ‘>’ token
38 | rho0_(dict.subDict("equationOfState").lookup<scalar>("rho0")),
| ^
rhoCCP.C:39:9: warning: invalid use of incomplete type ‘const class Foam::dictionary’
39 | T0_(dict.subDict("equationOfState").lookup<scalar>("T0")),
| ^~~~
In file included from /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/db/error/error.H:51,
from /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/autoPtrI.H:26,
from /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/autoPtr.H:148,
from rhoCCP.H:47,
from rhoCCP.C:26:
/opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/db/error/messageStream.H:63:7: note: forward declaration of ‘class Foam::dictionary’
63 | class dictionary;
| ^~~~~~~~~~
In file included from rhoCCP.H:241,
from rhoCCP.C:26:
rhoCCP.C:39:54: error: expected primary-expression before ‘>’ token
39 | T0_(dict.subDict("equationOfState").lookup<scalar>("T0")),
| ^
rhoCCP.C:40:11: warning: invalid use of incomplete type ‘const class Foam::dictionary’
40 | beta_(dict.subDict("equationOfState").lookup<scalar>("beta"))
| ^~~~
In file included from /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/db/error/error.H:51,
from /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/autoPtrI.H:26,
from /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/autoPtr.H:148,
from rhoCCP.H:47,
from rhoCCP.C:26:
/opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/db/error/messageStream.H:63:7: note: forward declaration of ‘class Foam::dictionary’
63 | class dictionary;
| ^~~~~~~~~~
In file included from rhoCCP.H:241,
from rhoCCP.C:26:
rhoCCP.C:40:56: error: expected primary-expression before ‘>’ token
40 | beta_(dict.subDict("equationOfState").lookup<scalar>("beta"))
| ^
rhoCCP.C: In member function ‘void Foam::rhoCCP<Specie>::write(Foam::Ostream&) const’:
rhoCCP.C:50:16: error: ‘dict’ has incomplete type
50 | dictionary dict("equationOfState");
| ^~~~
In file included from /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/db/error/error.H:51,
from /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/autoPtrI.H:26,
from /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/autoPtr.H:148,
from rhoCCP.H:47,
from rhoCCP.C:26:
/opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/db/error/messageStream.H:63:7: note: forward declaration of ‘class Foam::dictionary’
63 | class dictionary;
| ^~~~~~~~~~
In file included from rhoCCP.H:241,
from rhoCCP.C:26:
rhoCCP.C:50:16: error: ‘dict’ has incomplete type
50 | dictionary dict("equationOfState");
| ^~~~
In file included from /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/db/error/error.H:51,
from /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/autoPtrI.H:26,
from /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/autoPtr.H:148,
from rhoCCP.H:47,
from rhoCCP.C:26:
/opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/db/error/messageStream.H:63:7: note: forward declaration of ‘class Foam::dictionary’
63 | class dictionary;
| ^~~~~~~~~~
In file included from rhoCCP.H:241,
from rhoCCP.C:26:
rhoCCP.C:50:16: error: ‘dict’ has incomplete type
50 | dictionary dict("equationOfState");
| ^~~~
In file included from /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/db/error/error.H:51,
from /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/autoPtrI.H:26,
from /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/autoPtr.H:148,
from rhoCCP.H:47,
from rhoCCP.C:26:
/opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/db/error/messageStream.H:63:7: note: forward declaration of ‘class Foam::dictionary’
63 | class dictionary;
| ^~~~~~~~~~
In file included from rhoCCP.H:241,
from rhoCCP.C:26:
rhoCCP.C:50:16: error: ‘dict’ has incomplete type
50 | dictionary dict("equationOfState");
| ^~~~
In file included from /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/db/error/error.H:51,
from /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/autoPtrI.H:26,
from /opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/lnInclude/autoPtr.H:148,
from rhoCCP.H:47,
from rhoCCP.C:26:
/opt/OpenFOAM/OpenFOAM-dev/src/OpenFOAM/db/error/messageStream.H:63:7: note: forward declaration of ‘class Foam::dictionary’
63 | class dictionary;
| ^~~~~~~~~~
rhoCCP.C: At global scope:
rhoCCP.C:32:1: error: redefinition of ‘Foam::rhoCCP<Specie>::rhoCCP(const Foam::dictionary&)’
32 | Foam::rhoCCP<Specie>::rhoCCP
| ^~~~
In file included from rhoCCP.H:241,
from rhoCCP.C:26:
rhoCCP.C:32:1: note: ‘Foam::rhoCCP<Specie>::rhoCCP(const Foam::dictionary&)’ previously declared here
32 | Foam::rhoCCP<Specie>::rhoCCP
| ^~~~
rhoCCP.C:47:6: error: redefinition of ‘void Foam::rhoCCP<Specie>::write(Foam::Ostream&) const’
47 | void Foam::rhoCCP<Specie>::write(Ostream& os) const
| ^~~~
In file included from rhoCCP.H:241,
from rhoCCP.C:26:
rhoCCP.C:47:6: note: ‘void Foam::rhoCCP<Specie>::write(Foam::Ostream&) const’ previously declared here
47 | void Foam::rhoCCP<Specie>::write(Ostream& os) const
| ^~~~
rhoCCP.C:62:16: error: redefinition of ‘template<class Specie> Foam::Ostream& Foam::operator<<(Foam::Ostream&, const Foam::rhoCCP<Specie>&)’
62 | Foam::Ostream& Foam::operator<<
| ^~~~
In file included from rhoCCP.H:241,
from rhoCCP.C:26:
rhoCCP.C:62:16: note: ‘template<class Specie> Foam::Ostream& Foam::operator<<(Foam::Ostream&, const Foam::rhoCCP<Specie>&)’ previously declared here
62 | Foam::Ostream& Foam::operator<<
| ^~~~
make: *** [/opt/OpenFOAM/OpenFOAM-dev/wmake/rules/General/transform:26: /opt/OpenFOAM/OpenFOAM-dev/platforms/cygwin64mingw-w64DPInt32Opt/cygdrive/c/OpenFOAM/20.09/cygwin64/src/thermophysicalModels/specie/equationOfState/rhoCCP/rhoCCP.o] Error 1
**********************************************************************************************************************
Content of "files" file:
rhoCCP.C
EXE = $(FOAM_USER_APPBIN)/rhoCCP
Content of "options" file:
EXE_INC = \
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude
EXE_LIBS = \
-L$(FOAM_USER_LIBBIN) \
-lcompressibleTransportModels \
-lspecie \
-lthermophysicalProperties \
-lfiniteVolume \
-lmeshTools
Can you please give me some help with this problem? Thanks in advance