using borland lib classes

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

Join Date: Oct 2006
Posts: 1
Reputation: Sarguna is an unknown quantity at this point 
Solved Threads: 0
Sarguna Sarguna is offline Offline
Newbie Poster

using borland lib classes

 
0
  #1
Oct 30th, 2006
hi Everybody

I want to know how in borland c++ to use the lib file

i have a .lib file present with the source code of that library

i want to use the lib file

I have just added the lib into the project through

Project->AddtoProject i did not get the class present in it

2nd thing i tried is to add all the files of the lib i got the class
but got some 10 errors

Pls give me some solution of some sample code that uses .lib file
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: using borland lib classes

 
0
  #2
Oct 30th, 2006
Hello,

.lib files are dynamically linked, so the code contained inside these files is usually minimal, compared to the DLL files that have to acompany the .lib files.

Usually when you get a .lib file, there's a header file (*.h) to go with it. You then add this to the top of your file:
  1. #include <cool_new_library.h>
Replace < and > with quotes if the header file is in the local directory, of course.

As described in Borland's documentation, you may have to encapsulate the header inclusion with an extern c statement if you get "unresolved external symbol" errors:
  1. extern "C" {
  2. #include "cool_new_library.h"
  3. };

This may also be of use to you:
http://www.geocities.com/foetsch/borlibs/

Hope this helps
"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:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC