Hello, Dear Sir
I appreciate your work of developing and building "externalmedia" library
I have a problem in compiling with using gcc;
I followed up the guide to compile "ExternalMedia" for openmodelica with using gcc
but I got the a lot of error message
could you help me to understand how to compile with using gcc ?
thanks in advance, James
the error message ;
In file included from C:/OMC_Works/ExternalMedia_master/externals/coolprop.git/include/CoolPropTools.h:17,
from C:/OMC_Works/ExternalMedia_master/externals/coolprop.git/include/CachedElement.h:11,
from C:/OMC_Works/ExternalMedia_master/externals/coolprop.git/include/AbstractState.h:11,
from Sources/coolpropsolver.h:5,
from Sources/coolpropsolver.cpp:1:
C:/OMC_Works/ExternalMedia_master/externals/coolprop.git/include/CPfilepaths.h:36:7: warning: no newline at end of file
In file included from C:/OMC_Works/ExternalMedia_master/externals/coolprop.git/include/AbstractState.h:14,
from Sources/coolpropsolver.h:5,
from Sources/coolpropsolver.cpp:1:
C:/OMC_Works/ExternalMedia_master/externals/coolprop.git/include/PhaseEnvelope.h:137:7: warning: no newline at end of file
In file included from C:/OMC_Works/ExternalMedia_master/externals/coolprop.git/include/AbstractState.h:15,
from Sources/coolpropsolver.h:5,
from Sources/coolpropsolver.cpp:1:
C:/OMC_Works/ExternalMedia_master/externals/coolprop.git/include/crossplatform_shared_ptr.h:19: error: 'std::shared_ptr' has not been declared
In file included from Sources/coolpropsolver.h:5,
from Sources/coolpropsolver.cpp:1:
C:/OMC_Works/ExternalMedia_master/externals/coolprop.git/include/AbstractState.h:1186: error: 'shared_ptr' has not been declared
C:/OMC_Works/ExternalMedia_master/externals/coolprop.git/include/AbstractState.h:1186: error: expected ',' or '...' before '<' token
C:/OMC_Works/ExternalMedia_master/externals/coolprop.git/include/AbstractState.h: In constructor 'CoolProp::GeneratorInitializer::GeneratorInitializer(CoolProp::backend_families)':
C:/OMC_Works/ExternalMedia_master/externals/coolprop.git/include/AbstractState.h:1192: error: 'shared_ptr' was not declared in this scope
C:/OMC_Works/ExternalMedia_master/externals/coolprop.git/include/AbstractState.h:1192: error: expected primary-expression before '>' token
In file included from Sources/coolpropsolver.cpp:1:
Sources/coolpropsolver.h: At global scope:
Sources/coolpropsolver.h:31: error: ISO C++ forbids declaration of 'shared_ptr' with no type
Sources/coolpropsolver.h:31: error: expected ';' before '<' token
Sources/coolpropsolver.cpp: In constructor 'CoolPropSolver::CoolPropSolver(const std::string&, const std::string&, const std::string&)':
Sources/coolpropsolver.cpp:163: error: 'class CoolPropSolver' has no member named 'state'
Sources/coolpropsolver.cpp:164: error: 'class CoolPropSolver' has no member named 'state'
Sources/coolpropsolver.cpp:166: error: 'class CoolPropSolver' has no member named 'state'
Sources/coolpropsolver.cpp:167: error: 'class CoolPropSolver' has no member named 'state'
Sources/coolpropsolver.cpp:169: error: 'class CoolPropSolver' has no member named 'state'
Sources/coolpropsolver.cpp:170: error: 'class CoolPropSolver' has no member named 'state'
Sources/coolpropsolver.cpp:171: error: 'class CoolPropSolver' has no member named 'state'
Sources/coolpropsolver.cpp:172: error: 'class CoolPropSolver' has no member named 'state'
Sources/coolpropsolver.cpp:175: error: 'class CoolPropSolver' has no member named 'state'
Sources/coolpropsolver.cpp: In member function 'virtual void CoolPropSolver::setFluidConstants()':
Sources/coolpropsolver.cpp:192: error: 'state' was not declared in this scope
Sources/coolpropsolver.cpp: In member function 'virtual void CoolPropSolver::postStateChange(ExternalThermodynamicState*)':
Sources/coolpropsolver.cpp:218: error: 'state' was not declared in this scope
Sources/coolpropsolver.cpp:314: error: 'state' was not declared in this scope
Sources/coolpropsolver.cpp: In member function 'virtual void CoolPropSolver::setSat_p(double&, ExternalSaturationProperties*)':
Sources/coolpropsolver.cpp:390: error: 'state' was not declared in this scope
Sources/coolpropsolver.cpp: In member function 'virtual void CoolPropSolver::setSat_T(double&, ExternalSaturationProperties*)':
Sources/coolpropsolver.cpp:465: error: 'state' was not declared in this scope
Sources/coolpropsolver.cpp: In member function 'virtual void CoolPropSolver::setState_ph(double&, double&, int&, ExternalThermodynamicState*)':
Sources/coolpropsolver.cpp:529: error: 'state' was not declared in this scope
Sources/coolpropsolver.cpp: In member function 'virtual void CoolPropSolver::setState_pT(double&, double&, ExternalThermodynamicState*)':
Sources/coolpropsolver.cpp:554: error: 'state' was not declared in this scope
Sources/coolpropsolver.cpp: In member function 'virtual void CoolPropSolver::setState_dT(double&, double&, int&, ExternalThermodynamicState*)':
Sources/coolpropsolver.cpp:577: error: 'state' was not declared in this scope
Sources/coolpropsolver.cpp: In member function 'virtual void CoolPropSolver::setState_ps(double&, double&, int&, ExternalThermodynamicState*)':
Sources/coolpropsolver.cpp:598: error: 'state' was not declared in this scope
Sources/coolpropsolver.cpp: In member function 'virtual void CoolPropSolver::setState_hs(double&, double&, int&, ExternalThermodynamicState*)':
Sources/coolpropsolver.cpp:620: error: 'state' was not declared in this scope
Sources/coolpropsolver.cpp: In member function 'virtual double CoolPropSolver::partialDeriv_state(const std::string&, const std::string&, const std::string&, ExternalThermodynamicState*)':
Sources/coolpropsolver.cpp:640: error: 'state' was not declared in this scope
Sources/errorhandling.cpp:45:7: warning: no newline at end of file
In file included from Sources/FluidProp_IF.h:29,
from Sources/FluidProp_IF.cpp:21:
Sources/FluidProp_COM.h:22:21: error: comutil.h: No such file or directory
In file included from Sources/FluidProp_IF.h:29,
from Sources/FluidProp_IF.cpp:21:
Sources/FluidProp_COM.h:26: error: 'interface' does not name a type
In file included from Sources/FluidProp_IF.cpp:21:
Sources/FluidProp_IF.h:126: error: ISO C++ forbids declaration of 'IClassFactory' with no type
Sources/FluidProp_IF.h:126: error: expected ';' before '' token
Sources/FluidProp_IF.h:127: error: ISO C++ forbids declaration of 'IFluidProp_COM' with no type
Sources/FluidProp_IF.h:127: error: expected ';' before '' token
Sources/FluidProp_IF.cpp: In function 'std::string ConvertBSTRToString(OLECHAR*)':
Sources/FluidProp_IF.cpp:30: error: '_com_util' has not been declared
Sources/FluidProp_IF.cpp: In function 'OLECHAR* ConvertStringToBSTR(std::string&)':
Sources/FluidProp_IF.cpp:38: error: '_com_util' has not been declared
Sources/FluidProp_IF.cpp: In constructor 'TFluidProp::TFluidProp()':
Sources/FluidProp_IF.cpp:53: error: class 'TFluidProp' does not have any field named 'FluidProp_COM'
Sources/FluidProp_IF.cpp:59: error: 'ClassFactory' was not declared in this scope
Sources/FluidProp_IF.cpp:63: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In destructor 'TFluidProp::~TFluidProp()':
Sources/FluidProp_IF.cpp:77: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In member function 'bool TFluidProp::IsValid()':
Sources/FluidProp_IF.cpp:86: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In member function 'void TFluidProp::CreateObject(std::string, std::string*)':
Sources/FluidProp_IF.cpp:94: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In member function 'void TFluidProp::ReleaseObjects()':
Sources/FluidProp_IF.cpp:103: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In member function 'void TFluidProp::SetFluid(std::string, int, std::string*, double*, std::string*)':
Sources/FluidProp_IF.cpp:126: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In member function 'void TFluidProp::GetFluid(std::string*, int*, std::string*, double*, bool)':
Sources/FluidProp_IF.cpp:164: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In member function 'void TFluidProp::GetFluidNames(std::string, std::string, int*, std::string*, std::string*)':
Sources/FluidProp_IF.cpp:204: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In member function 'void TFluidProp::GetCompSet(std::string, int*, std::string*, std::string*)':
Sources/FluidProp_IF.cpp:235: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In member function 'double TFluidProp::Pressure(std::string, double, double, std::string*)':
Sources/FluidProp_IF.cpp:259: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In member function 'double TFluidProp::Temperature(std::string, double, double, std::string*)':
Sources/FluidProp_IF.cpp:275: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In member function 'double TFluidProp::SpecVolume(std::string, double, double, std::string*)':
Sources/FluidProp_IF.cpp:291: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In member function 'double TFluidProp::Density(std::string, double, double, std::string*)':
Sources/FluidProp_IF.cpp:307: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In member function 'double TFluidProp::Enthalpy(std::string, double, double, std::string*)':
Sources/FluidProp_IF.cpp:323: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In member function 'double TFluidProp::Entropy(std::string, double, double, std::string*)':
Sources/FluidProp_IF.cpp:339: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In member function 'double TFluidProp::IntEnergy(std::string, double, double, std::string*)':
Sources/FluidProp_IF.cpp:355: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In member function 'double TFluidProp::VaporQual(std::string, double, double, std::string*)':
Sources/FluidProp_IF.cpp:371: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In member function 'double* TFluidProp::LiquidCmp(std::string, double, double, std::string*)':
Sources/FluidProp_IF.cpp:390: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In member function 'double* TFluidProp::VaporCmp(std::string, double, double, std::string*)':
Sources/FluidProp_IF.cpp:414: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In member function 'double TFluidProp::HeatCapV(std::string, double, double, std::string*)':
Sources/FluidProp_IF.cpp:435: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In member function 'double TFluidProp::HeatCapP(std::string, double, double, std::string*)':
Sources/FluidProp_IF.cpp:451: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In member function 'double TFluidProp::SoundSpeed(std::string, double, double, std::string*)':
Sources/FluidProp_IF.cpp:467: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In member function 'double TFluidProp::Alpha(std::string, double, double, std::string*)':
Sources/FluidProp_IF.cpp:483: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In member function 'double TFluidProp::Beta(std::string, double, double, std::string*)':
Sources/FluidProp_IF.cpp:499: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In member function 'double TFluidProp::Chi(std::string, double, double, std::string*)':
Sources/FluidProp_IF.cpp:515: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In member function 'double TFluidProp::Fi(std::string, double, double, std::string*)':
Sources/FluidProp_IF.cpp:531: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In member function 'double TFluidProp::Ksi(std::string, double, double, std::string*)':
Sources/FluidProp_IF.cpp:547: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In member function 'double TFluidProp::Psi(std::string, double, double, std::string*)':
Sources/FluidProp_IF.cpp:563: error: 'FluidProp_COM' was not declared in this scope
Sources/FluidProp_IF.cpp: In member function 'double TFluidProp::Zeta(std::string, double, doubl