?
Solved

Linking .LIB and .DLL files to borland C++Builder3 application

Posted on 2001-06-06
1
Medium Priority
?
321 Views
Last Modified: 2008-02-01
To anyone willing to help,
I am trying to link advantech driver software to a data acquisition program I wrote using Borland C++builder3. I have a PCL-812PG Multi-Lab card in my machine.

In my program I am able to include the header file "driver.h"
(#include"D:\Program Files\Advantech\ADSAPI\include\driver.h")

but am unable to import the .LIB file. (#include"D:\Program Files\Advantech\ADSAPI\Examples\BC\LIB")

 The error message reads:
[C++Error] Thesis2.cpp(7): Unable to open include file 'D:\Program Files\Advantech\ADSAPI\Examples\BC\LIB'.

If I exclude the line (#include"D:\Program Files\Advantech\ADSAPI\Examples\BC\LIB")
The error message reads as follows
 
[LinkerError] Unresolved external 'pcl818H(int,unsigned int*)' referenced from D:\PROGRAM FILES\BORLAND\CBUILDER3\PROJECTS\THESIS2.OBJ.

'pcl818H' is a function call to a parameter table the driver software uses.
The manual refers to an IMLIB Utility method but I do not understand how this is used.

This is fundamental stuff I know, but I have little experience in the field and this program is part of my final year thesis to be presented on the 12th. So I'm pulling my hair out and would be very greatful for any suggestions.
Thankyou,
Richie.
0
Comment
Question by:RLawless
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 32

Accepted Solution

by:
jhance earned 400 total points
ID: 6161832
You don't include a lib file you link it in.  Open the project settings and go to the linker tab and add the lib file to the list of libs to be linked.  You can either specify the full pathname to the lib file or just its name and then also add the pathname to the linker include paths.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question