When it builds a dynamic library, PocketBuilder does not inspect the objects; it simply copies the compiled form of the objects. Therefore, the DataWindow objects and resources (such as GIF files) used by any of the objects in the library—either specified in a painter or assigned dynamically in a script—are not copied into the dynamic library.
For example, suppose test_dw.pkl contains DataWindow objects and test_w.pkl contains window objects that reference them, either statically or dynamically. If you build a dynamic library from test_w.pkl, you must either include the DataWindow objects in a PocketBuilder resource file that is referenced by test_w.pkl, or build a dynamic library from test_dw.pkl, as described in “How to include the objects that were not found”.