|
From: Frank V. C. <fr...@us...> - 2000-11-20 05:26:38
|
Update of /cvsroot/corelinux/clfll/src/testdrivers/exfl1 In directory slayer.i.sourceforge.net:/tmp/cvs-serv13808/src/testdrivers/exfl1 Modified Files: examp1.cpp Log Message: 122702 - Needs latest CVS clfw Index: examp1.cpp =================================================================== RCS file: /cvsroot/corelinux/clfll/src/testdrivers/exfl1/examp1.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** examp1.cpp 2000/11/18 22:45:22 1.2 --- examp1.cpp 2000/11/20 05:26:35 1.3 *************** *** 54,59 **** #endif - #include INCL_Library using namespace corelinux; --- 54,59 ---- #endif #include INCL_Library + #include INCL_LibraryInstance using namespace corelinux; *************** *** 255,260 **** Library aLibrary; ! aLibrary.load( "something.so" ); } --- 255,269 ---- Library aLibrary; + + LibraryInstancePtr aLibInst = aLibrary.load( "libm.so" ); ! if( aLibInst == NULLPTR ) ! { ! cout << "Can't load library" << endl; ! } ! else ! { ! cout << "Library " << aLibInst->getLibraryName() << " loaded" << endl; ! } } |