mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 09:20:34 +05:00
Fix bug SMESH5528 (The compilation fails on the file SMESHDriver.cxx using gcc2.95.4).
This commit is contained in:
parent
18052b88c4
commit
99dfb73d48
@ -73,7 +73,7 @@ void * SMESHDriver::getMeshDriver(string extension, string type)
|
|||||||
void * handle = dlopen(libName.c_str(), RTLD_LAZY);
|
void * handle = dlopen(libName.c_str(), RTLD_LAZY);
|
||||||
if(!handle)
|
if(!handle)
|
||||||
{
|
{
|
||||||
fputs (dlerror(), stderr);
|
cerr << dlerror() << endl;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -83,7 +83,7 @@ void * SMESHDriver::getMeshDriver(string extension, string type)
|
|||||||
factory = (void * (*)()) dlsym(handle, symbol.c_str());
|
factory = (void * (*)()) dlsym(handle, symbol.c_str());
|
||||||
if(factory==NULL)
|
if(factory==NULL)
|
||||||
{
|
{
|
||||||
fputs (dlerror(), stderr);
|
cerr << dlerror() << endl;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
else return factory();
|
else return factory();
|
||||||
@ -96,7 +96,7 @@ void * SMESHDriver::getMeshDocumentDriver(string extension)
|
|||||||
void * handle = dlopen(libName.c_str(), RTLD_LAZY);
|
void * handle = dlopen(libName.c_str(), RTLD_LAZY);
|
||||||
if(!handle)
|
if(!handle)
|
||||||
{
|
{
|
||||||
fputs (dlerror(), stderr);
|
cerr << dlerror() << endl;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -106,7 +106,7 @@ void * SMESHDriver::getMeshDocumentDriver(string extension)
|
|||||||
factory = (void * (*)()) dlsym(handle, symbol.c_str());
|
factory = (void * (*)()) dlsym(handle, symbol.c_str());
|
||||||
if(factory==NULL)
|
if(factory==NULL)
|
||||||
{
|
{
|
||||||
fputs (dlerror(), stderr);
|
cerr << dlerror() << endl;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
else return factory();
|
else return factory();
|
||||||
|
Loading…
Reference in New Issue
Block a user