adding library

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2007
Posts: 9
Reputation: amirwan is an unknown quantity at this point 
Solved Threads: 0
amirwan amirwan is offline Offline
Newbie Poster

adding library

 
0
  #1
Feb 13th, 2007
if i have dll library and header files how can i used it in borland c++>
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 5,051
Reputation: John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold 
Solved Threads: 332
Team Colleague
John A's Avatar
John A John A is offline Offline
Vampirical Lurker

Re: adding library

 
0
  #2
Feb 13th, 2007
Usually, you need a static library (.lib) for any DLLs you use in your program. Anyways, I don't know Borland, but here are the general steps for setting up a compiler to use an external library:
  1. Get a hold of the necessary files to use the library.
  2. Configure the compiler's library and header search paths to the location where you put the librariy's files.
  3. In the project you want to use the library in, look for "Libraries to link with" or something similar. Add the libraries here.
  4. In each source file that you need to use the library, include the necessary header files with
    1. #include <headerfile.h>
    Replacing headerfile.h of course, with the name of your header file. Also note that you should use quotes if you have the header file in the same directory as the project.
If you're having problems with these instructions, I probably won't be of much help, because as I already mentioned, I have never used Borland C++.
"Technological progress is like an axe in the hands of a pathological criminal."

All my posts may be freely redistributed under the terms of the MIT license.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum


Views: 2114 | Replies: 1
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC