diff -Naur src3.2.6.orig/MED_SRC_3.2.6/src/MEDMEM/MEDMEM_MedFieldDriver22.hxx src3.2.6/MED_SRC_3.2.6/src/MEDMEM/MEDMEM_MedFieldDriver22.hxx --- src3.2.6.orig/MED_SRC_3.2.6/src/MEDMEM/MEDMEM_MedFieldDriver22.hxx 2007-04-24 17:40:51.000000000 +0100 +++ src3.2.6/MED_SRC_3.2.6/src/MEDMEM/MEDMEM_MedFieldDriver22.hxx 2008-04-19 21:48:59.000000000 +0100 @@ -1199,7 +1199,7 @@ profilSize[typeNo]=pflSize; profilList[typeNo].resize(pflSize); profilListFromFile[typeNo].resize(pflSize); - ret = med_2_2::MEDprofilLire(id,&profilList[typeNo][0],profilName); // cf item 16 Effective STL // IPAL13481 + ret = med_2_2::MEDprofilLire(id,(med_2_2::med_int*)&profilList[typeNo][0],profilName); // cf item 16 Effective STL // IPAL13481 profilListFromFile[typeNo] = profilList[typeNo]; profilNameList[typeNo]=string(profilName); } @@ -1685,7 +1685,7 @@ ); if ( med_2_2::MEDMEMprofilEcr(id, - &profil[0], + (med_2_2::med_int*)&profil[0], numberOfElements, const_cast(profilName.c_str())) < 0) diff -Naur src3.2.6.orig/MED_SRC_3.2.6/src/MEDMEM/MEDMEM_MedMeshDriver22.cxx src3.2.6/MED_SRC_3.2.6/src/MEDMEM/MEDMEM_MedMeshDriver22.cxx --- src3.2.6.orig/MED_SRC_3.2.6/src/MEDMEM/MEDMEM_MedMeshDriver22.cxx 2007-04-24 17:40:51.000000000 +0100 +++ src3.2.6/MED_SRC_3.2.6/src/MEDMEM/MEDMEM_MedMeshDriver22.cxx 2008-04-19 21:49:10.000000000 +0100 @@ -345,7 +345,7 @@ err = med_2_2::MEDstructureCoordLire(_medIdt, const_cast (_ptrMesh->_name.c_str()), - MeshDimension,structure); + MeshDimension,(med_2_2::med_int*)structure); if (err != MED_VALID) throw MEDEXCEPTION(STRING(LOC) <<"Error in reading the structure of grid : |" << _meshName << "|" ) ; @@ -867,7 +867,7 @@ med_int major, minor, release; - if ( med_2_2::MEDversionLire(_medIdt, &major, &minor, &release) != 0 ) + if ( med_2_2::MEDversionLire(_medIdt, (med_2_2::med_int*)&major, (med_2_2::med_int*)&minor, (med_2_2::med_int*)&release) != 0 ) { // error : we suppose we have not a good med file ! delete[] tmp_cells_count ; @@ -1392,7 +1392,7 @@ const_cast (_ptrMesh->_name.c_str()), Entity, med_2_2::MED_NOD, - &ConnectivitySize); + (med_2_2::med_int*)&ConnectivitySize); if (err1 != MED_VALID) { MESSAGE(LOC<<": MEDpolygoneInfo returns "< (_ptrMesh->_name.c_str()), - PolygonsConnectivityIndex, + (med_2_2::med_int*)PolygonsConnectivityIndex, NumberOfPolygons+1, - PolygonsConnectivity, + (med_2_2::med_int*)PolygonsConnectivity, Entity, med_2_2::MED_NOD); if (err2 != MED_VALID) @@ -1483,8 +1483,8 @@ med_err err3 = MEDpolyedreInfo(_medIdt, const_cast (_ptrMesh->_name.c_str()), med_2_2::MED_NOD, - &FacesIndexSize, - &NumberOfNodes); + (med_2_2::med_int*)&FacesIndexSize, + (med_2_2::med_int*)&NumberOfNodes); NumberOfFaces = FacesIndexSize-1; if (err3 != MED_VALID) { @@ -1498,11 +1498,11 @@ med_err err4 = MEDpolyedreConnLire(_medIdt, const_cast (_ptrMesh->_name.c_str()), - PolyhedronIndex, + (med_2_2::med_int*)PolyhedronIndex, NumberOfPolyhedron+1, - FacesIndex, + (med_2_2::med_int*)FacesIndex, NumberOfFaces+1, - Nodes, + (med_2_2::med_int*)Nodes, med_2_2::MED_NOD); if (err4 != MED_VALID) { @@ -1705,12 +1705,12 @@ err = med_2_2::MEDfamInfo(_medIdt,const_cast (_meshName.c_str()), (i+1),const_cast - (FamilyName.c_str()), &tmp_FamilyIdentifier, - tmp_AttributesIdentifier,tmp_AttributesValues, + (FamilyName.c_str()), (med_2_2::med_int*)&tmp_FamilyIdentifier, + (med_2_2::med_int*)tmp_AttributesIdentifier, (med_2_2::med_int*)tmp_AttributesValues, const_cast (AttributesDescription.c_str()), - &tmp_NumberOfAttributes, const_cast - (GroupsNames.c_str()),&tmp_NumberOfGroups); + (med_2_2::med_int*)&tmp_NumberOfAttributes, const_cast + (GroupsNames.c_str()),(med_2_2::med_int*)&tmp_NumberOfGroups); FamilyIdentifier = tmp_FamilyIdentifier ; int ii ; for ( ii = 0 ; ii < NumberOfAttributes ; ii++ ) { @@ -1835,7 +1835,7 @@ #if defined(IRIX64) || defined(OSF1) || defined(VPP5000) || defined(PCLINUX64) med_int * tmp_MEDArrayNodeFamily = new med_int[_ptrMesh->getNumberOfNodes()] ; err = MEDfamLire(_medIdt, const_cast - (_ptrMesh->_name.c_str()), tmp_MEDArrayNodeFamily, + (_ptrMesh->_name.c_str()), (med_2_2::med_int*)tmp_MEDArrayNodeFamily, _ptrMesh->getNumberOfNodes(), med_2_2::MED_NOEUD, (med_2_2::med_geometrie_element) MED_NONE); int i ; @@ -2350,7 +2350,7 @@ #if defined(IRIX64) || defined(OSF1) || defined(VPP5000) || defined(PCLINUX64) const int * NodesNumbers = _ptrMesh->_coordinate->getNodesNumbers() ; - med_2_2::med_int * tmp_NodesNumbers = new med_int[_ptrMesh->_numberOfNodes] ; + med_2_2::med_int * tmp_NodesNumbers = (med_2_2::med_int*)(new med_int[_ptrMesh->_numberOfNodes]) ; int ii ; for ( ii = 0 ; ii < _ptrMesh->_numberOfNodes ; ii++ ) tmp_NodesNumbers[ii] = NodesNumbers[ii] ; @@ -2737,7 +2737,7 @@ const_cast (_meshName.c_str()), tmp_PolyhedronIndex, nbPolyhedron + 1, - &FacesGeometricTypes[0], + (med_2_2::med_int*)&FacesGeometricTypes[0], NumberOfFaces, tmp_PolyhedronConnectivity, med_2_2::MED_DESC); diff -Naur src3.2.6.orig/MED_SRC_3.2.6/src/MEDWrapper/V2_2/MED_V2_2_Wrapper.cxx src3.2.6/MED_SRC_3.2.6/src/MEDWrapper/V2_2/MED_V2_2_Wrapper.cxx --- src3.2.6.orig/MED_SRC_3.2.6/src/MEDWrapper/V2_2/MED_V2_2_Wrapper.cxx 2007-04-24 17:40:51.000000000 +0100 +++ src3.2.6/MED_SRC_3.2.6/src/MEDWrapper/V2_2/MED_V2_2_Wrapper.cxx 2008-04-19 21:48:53.000000000 +0100 @@ -644,7 +644,7 @@ MED::TMeshInfo& aMeshInfo = *theInfo.myMeshInfo; char* anElemNames = theInfo.myIsElemNames? &theInfo.myElemNames[0]: NULL; - med_int* anElemNum = theInfo.myIsElemNum? &theInfo.myElemNum[0]: NULL; + med_int* anElemNum = theInfo.myIsElemNum? (med_int*)&theInfo.myElemNum[0]: NULL; TErr aRet = MEDnoeudsLire(myFile->Id(), &aMeshInfo.myName[0], @@ -682,7 +682,7 @@ MED::TMeshInfo& aMeshInfo = *anInfo.myMeshInfo; char* anElemNames = theInfo.myIsElemNames? &anInfo.myElemNames[0]: NULL; - med_int* anElemNum = theInfo.myIsElemNum? &anInfo.myElemNum[0]: NULL; + med_int* anElemNum = theInfo.myIsElemNum? (med_int*)&anInfo.myElemNum[0]: NULL; TErr aRet = MEDnoeudsEcr(myFile->Id(), &aMeshInfo.myName[0], @@ -1152,7 +1152,7 @@ TInt aNbElem = theInfo.myElemNum.size(); char* anElemNames = theInfo.myIsElemNames? &theInfo.myElemNames[0]: NULL; - med_int* anElemNum = theInfo.myIsElemNum? &theInfo.myElemNum[0]: NULL; + med_int* anElemNum = theInfo.myIsElemNum? (med_int*)&theInfo.myElemNum[0]: NULL; TErr aRet; aRet = MEDelementsLire(myFile->Id(), @@ -1191,7 +1191,7 @@ MED::TMeshInfo& aMeshInfo = *anInfo.myMeshInfo; char* anElemNames = theInfo.myIsElemNames? &anInfo.myElemNames[0]: NULL; - med_int* anElemNum = theInfo.myIsElemNum? &anInfo.myElemNum[0]: NULL; + med_int* anElemNum = theInfo.myIsElemNum? (med_int*)&anInfo.myElemNum[0]: NULL; TErr aRet; aRet = MEDelementsEcr(myFile->Id(), @@ -1426,7 +1426,7 @@ aRet = MEDprofilInfo(myFile->Id(), theId, &aName[0], - &aSize); + (med_int*)&aSize); if(theErr) *theErr = aRet; else if(aRet < 0) @@ -1449,7 +1449,7 @@ TErr aRet; aRet = MEDprofilLire(myFile->Id(), - &theInfo.myElemNum[0], + (med_int*)&theInfo.myElemNum[0], &theInfo.myName[0]); if(theErr) *theErr = aRet; @@ -2006,7 +2006,7 @@ aRet = MEDstructureCoordEcr(myFile->Id(), &aMeshInfo.myName[0], aMeshInfo.myDim, - &anInfo.myGrilleStructure[0]); + (med_int*)&anInfo.myGrilleStructure[0]); if(aRet < 0) EXCEPTION(runtime_error,"SetGrilleInfo - MEDstructureCoordEcr(...)");