Changeset 8 for trunk/src/tools/qlibrary.cpp
- Timestamp:
- Nov 16, 2005, 8:36:46 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tools/qlibrary.cpp
r7 r8 1 //depot/qt/3/src/tools/qlibrary.cpp#9 - edit change 123005 (text)2 1 /**************************************************************************** 3 2 ** $Id$ … … 123 122 QLibrary lib( "mylib.dll" ); 124 123 \endcode 125 on Windows , and124 on Windows and OS/2, and 126 125 \code 127 126 QLibrary lib( "libmylib.so" ); … … 178 177 with a C++ compiler. On Windows you also have to explicitly export 179 178 the function from the DLL using the \c {__declspec(dllexport)} 180 compiler directive. 179 compiler directive. 181 180 182 181 \code … … 197 196 \endcode 198 197 198 On OS/2 you should create a .DEF file that describes what functions are 199 exported and use it when linking your DLL (@@TODO: add more info and an 200 example). 201 199 202 On Darwin and Mac OS X this function uses code from dlcompat, part of the 200 203 OpenDarwin project. … … 385 388 QString str = lib.library(); 386 389 \endcode 387 will set \e str to "mylib.dll" on Windows , and "libmylib.so" on Linux.390 will set \e str to "mylib.dll" on Windows and OS/2, and "libmylib.so" on Linux. 388 391 */ 389 392 QString QLibrary::library() const … … 394 397 QString filename = libfile; 395 398 396 #if defined(Q_WS_WIN) 399 #if defined(Q_WS_WIN) || defined(Q_OS_OS2) 397 400 if ( filename.findRev( '.' ) <= filename.findRev( '/' ) ) 398 401 filename += ".dll";
Note:
See TracChangeset
for help on using the changeset viewer.