From: jrt Date: Wed, 24 Mar 2004 17:31:44 +0000 (+0000) Subject: Fix bug SMESH5528 (The compilation fails on the file SMESHDriver.cxx using gcc2.95.4). X-Git-Tag: V2_0_0b1~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=99dfb73d48eceb6f96ec5c7e93f4eddc7d4edc79;p=modules%2Fsmesh.git Fix bug SMESH5528 (The compilation fails on the file SMESHDriver.cxx using gcc2.95.4). --- diff --git a/src/Driver/SMESHDriver.cxx b/src/Driver/SMESHDriver.cxx index 696c00d88..e98932a80 100644 --- a/src/Driver/SMESHDriver.cxx +++ b/src/Driver/SMESHDriver.cxx @@ -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();