From 99dfb73d48eceb6f96ec5c7e93f4eddc7d4edc79 Mon Sep 17 00:00:00 2001 From: jrt Date: Wed, 24 Mar 2004 17:31:44 +0000 Subject: [PATCH] Fix bug SMESH5528 (The compilation fails on the file SMESHDriver.cxx using gcc2.95.4). --- src/Driver/SMESHDriver.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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();