Many IDE today could set libraries directories and includes directories. What is the difference between them?
Thanks.
Many IDE today could set libraries directories and includes directories. What is the difference between them?
Thanks.
You normally include header files, which are just source code. You link libraries, which are already compiled.
CodeCall Blog | CodeCall Wiki | Shareware
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog
there are also a place to link binaries, so what's the difference between binaries and libraries?
For example, in Dev C++, in the options:
wagjo.com/fileadmin/wagjo/images/boost/devc2.gif
(sorry, it's a link to a image, I cannot post a link or image yet)
The 'includes' provide the compiler with a way of determining where aspects of your code are defined. These 'includes' in conjunction with your preprocessor directives determine your translation units. The translation unit is that part of the code that is built into your executable.
During the build stage you will encounter a stage called 'linking' that refers to these libraries in order to 'resolve externals'. When there are conflicts or ambiguities between libraries and the includes that determine which libraries are to be included, you end up with 'unresolved externals' that don't give you very much information on what went wrong. Why not much information? Because the problem is ambiguous, so cannot be pinpointed by the linker.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks
Algorithms and Data Structures
Java tutorials
Algorithms Forum