Fix bug SMESH5528 (The compilation fails on the file SMESHDriver.cxx using gcc2.95.4).

This commit is contained in:
jrt 2004-03-24 17:31:44 +00:00
parent 18052b88c4
commit 99dfb73d48

View File

@ -73,7 +73,7 @@ void * SMESHDriver::getMeshDriver(string extension, string type)
void * handle = dlopen(libName.c_str(), RTLD_LAZY);
if(!handle)
{
fputs (dlerror(), stderr);
cerr << dlerror() << endl;
return NULL;
}
else
@ -83,7 +83,7 @@ void * SMESHDriver::getMeshDriver(string extension, string type)
factory = (void * (*)()) dlsym(handle, symbol.c_str());
if(factory==NULL)
{
fputs (dlerror(), stderr);
cerr << dlerror() << endl;
return NULL;
}
else return factory();
@ -96,7 +96,7 @@ void * SMESHDriver::getMeshDocumentDriver(string extension)
void * handle = dlopen(libName.c_str(), RTLD_LAZY);
if(!handle)
{
fputs (dlerror(), stderr);
cerr << dlerror() << endl;
return NULL;
}
else
@ -106,7 +106,7 @@ void * SMESHDriver::getMeshDocumentDriver(string extension)
factory = (void * (*)()) dlsym(handle, symbol.c_str());
if(factory==NULL)
{
fputs (dlerror(), stderr);
cerr << dlerror() << endl;
return NULL;
}
else return factory();