Changeset 490da83 in tol for tol/contrib/cint/tolCint.cpp
- Timestamp:
- Jan 18, 2011, 10:48:14 AM (16 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- fc77a9b
- Parents:
- a3ef643
- File:
-
- 1 edited
-
tol/contrib/cint/tolCint.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/contrib/cint/tolCint.cpp
ra3ef643 r490da83 31 31 #include <tol/tol_bsetgra.h> 32 32 #include <ltdl.h> 33 34 static int lt_dlinit_ = -1; 33 35 34 36 typedef void (*G__scratch_all_t) (void); … … 68 70 //-------------------------------------------------------------------- 69 71 { 72 if(lt_dlinit_) 73 { lt_dlinit_ = lt_dlinit(); } 70 74 BText libraryName = "libcint"; 71 75 BText libraryPath = ""; … … 76 80 #endif 77 81 78 lt_dlhandle handleLib ;82 lt_dlhandle handleLib=0; 79 83 80 84 // abro la DynLib 81 85 handleLib = lt_dlopen( libraryPath ); 86 BText reason( lt_dlerror( ) ); 82 87 if ( !handleLib ) 83 88 { 84 89 //Std(BText("\nTRACE BLoadDynLib::Evaluator 3 lt_dlerror='")+lt_dlerror()+"'"); 85 BText reason( lt_dlerror( ) );86 90 Warning(BText("[Cint_dynamic_linkage(\"")+libraryPath+"\")]"+" \n" 87 91 " lt_dlopen error:'"+reason+"'"); 88 92 return(false); 89 93 } 94 G__init_cint_ptr = reinterpret_cast<G__init_cint_t>( lt_dlsym( handleLib, "G__init_cint" ) ); 95 if(!G__init_cint_ptr) 96 { 97 Warning(BText("[Cint_dynamic_linkage(\"")+libraryPath+"\")]"+" \n" 98 " lt_dlopen error:'"+reason+"'"); 99 return(false); 100 } 90 101 G__scratch_all_ptr = reinterpret_cast<G__scratch_all_t>( lt_dlsym( handleLib, "G__scratch_all" ) ); 91 102 G__lasterror_filename_ptr = reinterpret_cast<G__lasterror_filename_t>( lt_dlsym( handleLib, "G__lasterror_filename" ) ); 92 103 G__lasterror_linenum_ptr = reinterpret_cast<G__lasterror_linenum_t>( lt_dlsym( handleLib, "G__lasterror_linenum" ) ); 93 G__init_cint_ptr = reinterpret_cast<G__init_cint_t>( lt_dlsym( handleLib, "G__init_cint" ) );94 104 G__set_errmsgcallback_ptr = reinterpret_cast<G__set_errmsgcallback_t>( lt_dlsym( handleLib, "G__set_errmsgcallback" ) ); 95 105 G__setautoconsole_ptr = reinterpret_cast<G__setautoconsole_t>( lt_dlsym( handleLib, "G__setautoconsole" ) );
Note: See TracChangeset
for help on using the changeset viewer.
