resourceFile = getenv("MEDCOUPLING_ROOT_DIR");
resourceFile += "/share/resources/med/";
resourceFile += filename;
- std::ifstream my_file(resourceFile);
+ std::ifstream my_file(resourceFile.c_str());
if (my_file.good())
return resourceFile;
}
resourceFile += "../";
resourceFile += "resources/";
resourceFile += filename;
- std::ifstream my_file(resourceFile);
+ std::ifstream my_file(resourceFile.c_str());
if (!my_file.good())
{
std::stringstream ss;
{
execName=getenv("MEDCOUPLING_ROOT_DIR"); //.../INSTALL/MED
execName+="/bin/medpartitioner";
- std::ifstream my_file(execName);
+ std::ifstream my_file(execName.c_str());
if (my_file.good())
return execName;
}