Chapter 19. Creating Plugins

Creating Plugins

Dynamic libraries (also called shared libraries or DLLs) are independent modules that are stored in a separate file on disk and can be accessed by multiple applications. Programs usually specify which dynamic libraries they need at link time, in which case the libraries are automatically loaded when the application starts. This approach usually involves adding the library and possibly its include path to the application’s .pro file and including the relevant headers in the source files. For example:

 LIBS += -ldb_cxx INCLUDEPATH += /usr/local/BerkeleyDB.4.2/include ...

Get C++ GUI Programming with Qt 4 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.