| | |
using borland lib classes
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2006
Posts: 1
Reputation:
Solved Threads: 0
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
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
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:
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:
This may also be of use to you:
http://www.geocities.com/foetsch/borlibs/
Hope this helps
.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:
c Syntax (Toggle Plain Text)
#include <cool_new_library.h>
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:
c Syntax (Toggle Plain Text)
extern "C" { #include "cool_new_library.h" };
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.
All my posts may be freely redistributed under the terms of the MIT license.
![]() |
Similar Threads
- Borland c++ builder question (C++)
- Borland C++ (C++)
- add library to borland c++ (C++)
- j2ee doesnt start! (JSP)
- Security Alert Bug on taskbar.. Please Help (Viruses, Spyware and other Nasties)
- connectivity in Borland C (C++)
- String to disk with fstream (C++)
- Linker error in borland turboc3 compiler.need help in desperation (C++)
Other Threads in the C++ Forum
- Previous Thread: I need help encrypting!!!
- Next Thread: FindWindow Problems (on Windows 98/ME)
| Thread Tools | Search this Thread |
api array arrays based beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete deploy developer dll download dynamiccharacterarray email encryption error file forms fstream function functions game generator getline givemetehcodez graph gui homeworkhelp homeworkhelper iamthwee ifstream input int java lib list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference rpg sorting string strings temperature template text text-file tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






