Question and Answer Database FAQ513C.txt Linking to static or other .libs in a component Category :Linker Platform :All Product :C++Builder 1.x Question: When installing a component in C++ Builder, how do I enable the compiler to recognize a third-party library when rebuilding the component palette? Answer: In the source for your component, include the following statement: #pragma link "[full path name]\\foo.lib." This statement tells the linker to link to the library specified; at the present time, the full path name is required. (Note that for resources, you need to do something similar: #pragma resource "[full path name]\\foo.res") 7/2/98 10:32:32 AM
Last Modified: 01-SEP-99