Tools]
Borland C ++ Builder 6.0/codegear C ++ builder 2007/2009
[Problem]
When you use the external library file (static lib file, static Call DLL) Link, an error is reported: some functions cannot be found.
[Solution]
Method 1:
Right-click the project and select "add..." in the pop-up menu ...".
In the file selection box, select ". lib" as the file type ",
Find the corresponding lib file and click "open". The LIB file will be added to the project.
Recompile the link.
Method 2:
On the "Project --> options" setting interface, switch to "directories/conditionals ",
Click "..." next to "library path,
On the "directories" interface, add the directory where the Lib file is located,
Take iphlpapi. Lib as an example. The directory is "$ (BCB)/lib/psdk ".
Then, in the "# pragma..." section of the main project file to use this Lib,
Add the following statement:
# Pragma link "iphlpapi. lib"
Recompile the link.