| | |
adding library
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
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:
- Get a hold of the necessary files to use the library.
- Configure the compiler's library and header search paths to the location where you put the librariy's files.
- In the project you want to use the library in, look for "Libraries to link with" or something similar. Add the libraries here.
- In each source file that you need to use the library, include the necessary header files with ReplacingC++ Syntax (Toggle Plain Text)
- #include <headerfile.h>
headerfile.hof 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.
"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
- C++ Random Numbers (C++)
- Trouble adding new row to DataTable (C#) (C#)
- Code Snippet Library (IT Professionals' Lounge)
- Library compatibility problem? (C)
- StorageTek Tape library upgrade (Windows NT / 2000 / XP)
- deleted i photo-photo library (Mac Software)
- adding totals in listboxes (Visual Basic 4 / 5 / 6)
Other Threads in the C++ Forum
- Previous Thread: ctor/dtor problem
- Next Thread: problem comparing input values
Views: 2114 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for C++
6 add api array arrays beginner binary bmp c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete desktop directshow dll download dynamic encryption error file forms fstream function functions game givemetehcodez google graph gui iamthwee ifstream input int java lib library lines linkedlist linker loop looping loops map math matrix memory microsoft newbie news number output pointer problem program programming project python random read recursion recursive reference return sort string strings struct studio system temperature template templates test text text-file tree unix url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets






