problems about source code in file units.cxx

Hi,
I have downloaded the laterest version of Open CASCADE(6.1). But after installed it, I found there are errors in file "unitsapi.cxx" and function "void UnitsAPI::CheckLoading (const UnitsAPI_SystemUnits aSystemUnits)". it sames coding conversion errors, can anyone help me correct it.

The error is as follows, with "?" and "癒" as error chars. It's all quantums.

file : unitsapi.cxx
function : UnitsAPI::CheckLoading
lines : 94~144

MDTVLocalSystemUnits.Specify("LENGTH","mm");
MDTVLocalSystemUnits.Specify("AREA","mm?);
MDTVLocalSystemUnits.Specify("VOLUME","mm?);
MDTVLocalSystemUnits.Specify("INERTIA","mm**4");
MDTVLocalSystemUnits.Specify("SPEED","mm/s");
MDTVLocalSystemUnits.Specify("ACCELERATION","mm/s?);
MDTVLocalSystemUnits.Specify("VOLUMIC MASS","kg/mm?);
MDTVLocalSystemUnits.Specify("VOLUME FLOW","mm?s");
MDTVLocalSystemUnits.Specify("CONSUMPTION","mm?);
MDTVLocalSystemUnits.Specify("QUANTITY OF MOVEMENT","kg*mm/s");
MDTVLocalSystemUnits.Specify("KINETIC MOMENT","kg*mm?s");
MDTVLocalSystemUnits.Specify("MOMENT OF INERTIA","kg*mm?);
MDTVLocalSystemUnits.Specify("FORCE","kg*mm/s?);
MDTVLocalSystemUnits.Specify("LINEIC FORCE","kg/s?);
MDTVLocalSystemUnits.Specify("MOMENT OF A FORCE","kg*mm?s?);
MDTVLocalSystemUnits.Specify("PRESSURE","kg/(mm*s?");
MDTVLocalSystemUnits.Specify("DYNAMIC VISCOSITY","kg/(mm*s)");
MDTVLocalSystemUnits.Specify("KINETIC VISCOSITY","mm?s");
MDTVLocalSystemUnits.Specify("TENSION SUPERFICIELLE","mm/s?);
MDTVLocalSystemUnits.Specify("ENERGY","kg*mm?s?);
MDTVLocalSystemUnits.Specify("POWER","kg*mm?s?);
MDTVLocalSystemUnits.Specify("LINEIC POWER","kg*mm/s?);
MDTVLocalSystemUnits.Specify("SURFACIC POWER","kg/s?);
MDTVLocalSystemUnits.Specify("VOLUMIC POWER","kg/(mm*s?");
MDTVLocalSystemUnits.Specify("THERMICAL CONDUCTIVITY","kg*mm/(s?癒)");
MDTVLocalSystemUnits.Specify("THERMICAL CONVECTIVITY","kg/(s?癒)");
MDTVLocalSystemUnits.Specify("THERMICAL MASSIC CAPACITY","mm?(s?癒)");
MDTVLocalSystemUnits.Specify("ENTROPY","kg*mm?(s?癒)");
MDTVLocalSystemUnits.Specify("ENTHALPY","kg*mm?s?);
MDTVLocalSystemUnits.Specify("LUMINANCE","cd/mm?);
MDTVLocalSystemUnits.Specify("LUMINOUS EFFICACITY","s?Lu/(kg*mm?");
MDTVLocalSystemUnits.Specify("ELECTRIC FIELD","V/mm");
MDTVLocalSystemUnits.Specify("ELECTRIC CAPACITANCE","s**4*A?(kg*mm?");
MDTVLocalSystemUnits.Specify("MAGNETIC FIELD","A/mm");
MDTVLocalSystemUnits.Specify("MAGNETIC FLUX","kg*mm?(s?A)");
MDTVLocalSystemUnits.Specify("INDUCTANCE","kg*mm?(s?A?");
MDTVLocalSystemUnits.Specify("RELUCTANCE","s?A?(kg*mm?");
MDTVLocalSystemUnits.Specify("RESISTIVITY","O*mm");
MDTVLocalSystemUnits.Specify("CONDUCTIVITY","S/mm");
MDTVLocalSystemUnits.Specify("MOLAR MASS","kg/mol");
MDTVLocalSystemUnits.Specify("MOLAR VOLUME","mm?mol");
MDTVLocalSystemUnits.Specify("CONCENTRATION","kg/mm?);
MDTVLocalSystemUnits.Specify("MOLAR CONCENTRATION","mol/mm?);
MDTVLocalSystemUnits.Specify("ACCOUSTIC INTENSITY","mm/A?);
MDTVLocalSystemUnits.Specify("DOSE EQUIVALENT","mm?s?);
MDTVLocalSystemUnits.Specify("ABSORBED DOSE","mm?s?);
MDTVLocalSystemUnits.Specify("FLUX OF MAGNETIC INDUCTION","kg*mm?(s?A)");
MDTVLocalSystemUnits.Specify("ROTATION ACCELERATION","rad/s?);
MDTVLocalSystemUnits.Specify("TRANSLATION STIFFNESS","kg/s?);
MDTVLocalSystemUnits.Specify("ROTATION STIFFNESS","kg*mm?(s?rad)");
MDTVLocalSystemUnits.Activates();

thanks

Yogesh Dhakad's picture

Hope this helps;
if( MDTVLocalSystemUnits.IsEmpty() ) {
MDTVLocalSystemUnits.Specify("LENGTH","mm");
MDTVLocalSystemUnits.Specify("AREA","mm²");
MDTVLocalSystemUnits.Specify("VOLUME","mm³");
MDTVLocalSystemUnits.Specify("INERTIA","mm**4");
MDTVLocalSystemUnits.Specify("SPEED","mm/s");
MDTVLocalSystemUnits.Specify("ACCELERATION","mm/s²");
MDTVLocalSystemUnits.Specify("VOLUMIC MASS","kg/mm³");
MDTVLocalSystemUnits.Specify("VOLUME FLOW","mm³/s");
MDTVLocalSystemUnits.Specify("CONSUMPTION","mm²");
MDTVLocalSystemUnits.Specify("QUANTITY OF MOVEMENT","kg*mm/s");
MDTVLocalSystemUnits.Specify("KINETIC MOMENT","kg*mm²/s");
MDTVLocalSystemUnits.Specify("MOMENT OF INERTIA","kg*mm²");
MDTVLocalSystemUnits.Specify("FORCE","kg*mm/s²");
MDTVLocalSystemUnits.Specify("LINEIC FORCE","kg/s²");
MDTVLocalSystemUnits.Specify("MOMENT OF A FORCE","kg*mm²/s²");
MDTVLocalSystemUnits.Specify("PRESSURE","kg/(mm*s²)");
MDTVLocalSystemUnits.Specify("DYNAMIC VISCOSITY","kg/(mm*s)");
MDTVLocalSystemUnits.Specify("KINETIC VISCOSITY","mm²/s");
MDTVLocalSystemUnits.Specify("TENSION SUPERFICIELLE","mm/s²");
MDTVLocalSystemUnits.Specify("ENERGY","kg*mm²/s²");
MDTVLocalSystemUnits.Specify("POWER","kg*mm²/s³");
MDTVLocalSystemUnits.Specify("LINEIC POWER","kg*mm/s³");
MDTVLocalSystemUnits.Specify("SURFACIC POWER","kg/s³");
MDTVLocalSystemUnits.Specify("VOLUMIC POWER","kg/(mm*s³)");
MDTVLocalSystemUnits.Specify("THERMICAL CONDUCTIVITY","kg*mm/(s³*°K)");
MDTVLocalSystemUnits.Specify("THERMICAL CONVECTIVITY","kg/(s³*°K)");
MDTVLocalSystemUnits.Specify("THERMICAL MASSIC CAPACITY","mm²/(s²*°K)");
MDTVLocalSystemUnits.Specify("ENTROPY","kg*mm²/(s²*°K)");
MDTVLocalSystemUnits.Specify("ENTHALPY","kg*mm²/s²");
MDTVLocalSystemUnits.Specify("LUMINANCE","cd/mm²");
MDTVLocalSystemUnits.Specify("LUMINOUS EFFICACITY","s³*Lu/(kg*mm²)");
MDTVLocalSystemUnits.Specify("ELECTRIC FIELD","V/mm");
MDTVLocalSystemUnits.Specify("ELECTRIC CAPACITANCE","s**4*A²/(kg*mm²)");
MDTVLocalSystemUnits.Specify("MAGNETIC FIELD","A/mm");
MDTVLocalSystemUnits.Specify("MAGNETIC FLUX","kg*mm²/(s²*A)");
MDTVLocalSystemUnits.Specify("INDUCTANCE","kg*mm²/(s²*A²)");
MDTVLocalSystemUnits.Specify("RELUCTANCE","s²*A²/(kg*mm²)");
MDTVLocalSystemUnits.Specify("RESISTIVITY","O*mm");
MDTVLocalSystemUnits.Specify("CONDUCTIVITY","S/mm");
MDTVLocalSystemUnits.Specify("MOLAR MASS","kg/mol");
MDTVLocalSystemUnits.Specify("MOLAR VOLUME","mm³/mol");
MDTVLocalSystemUnits.Specify("CONCENTRATION","kg/mm³");
MDTVLocalSystemUnits.Specify("MOLAR CONCENTRATION","mol/mm³");
MDTVLocalSystemUnits.Specify("ACCOUSTIC INTENSITY","mm/A²");
MDTVLocalSystemUnits.Specify("DOSE EQUIVALENT","mm²/s²");
MDTVLocalSystemUnits.Specify("ABSORBED DOSE","mm²/s²");
MDTVLocalSystemUnits.Specify("FLUX OF MAGNETIC INDUCTION","kg*mm²/(s²*A)");
MDTVLocalSystemUnits.Specify("ROTATION ACCELERATION","rad/s²");
MDTVLocalSystemUnits.Specify("TRANSLATION STIFFNESS","kg/s²");
MDTVLocalSystemUnits.Specify("ROTATION STIFFNESS","kg*mm²/(s²*rad)");
MDTVLocalSystemUnits.Activates();
}

白晓亮(Bai Xiaolian's picture

Thank you.