Making a static labrary (to use <...> insted of "...")
-
Hi I've downloaded free Interbase library - IBPP. What I must do to use it as instead of "..\ibpp\ibpp.h" in my project? Do I have to move IBPP files from my project folder to ... ? P.S. I'm new to the C++ scene so if you can write more details of how to do this in MSVS 2005 or DevC++. Thank you in advance, Ani
-
Hi I've downloaded free Interbase library - IBPP. What I must do to use it as instead of "..\ibpp\ibpp.h" in my project? Do I have to move IBPP files from my project folder to ... ? P.S. I'm new to the C++ scene so if you can write more details of how to do this in MSVS 2005 or DevC++. Thank you in advance, Ani
I didn't fully understand what you were asking but I guess that you want to avoid specifying the full path to the include files in your sources, is that right ? If, yes, you have to specify this in the "additional include directories" option. For VC2005, open the project settings -> "C/C++" -> "General" -> "Additional Include Directories". There add the path to the include dir of the library.
Cédric Moonen Software developer
Charting control [v1.5] OpenGL game tutorial in C++ -
I didn't fully understand what you were asking but I guess that you want to avoid specifying the full path to the include files in your sources, is that right ? If, yes, you have to specify this in the "additional include directories" option. For VC2005, open the project settings -> "C/C++" -> "General" -> "Additional Include Directories". There add the path to the include dir of the library.
Cédric Moonen Software developer
Charting control [v1.5] OpenGL game tutorial in C++ -
Well basically in my code I want to write:
#include '<ibpp.h'>
(I use ' just beacuse of the tags) instead of
"..\IBPP\ibpp.h"
I know that I have to use static library, but I have no clue about them :)
Well, and what is the problem with the solution I gave you ? :confused: And why do you want to use <> instead of "" ?
Cédric Moonen Software developer
Charting control [v1.5] OpenGL game tutorial in C++ -
Well basically in my code I want to write:
#include '<ibpp.h'>
(I use ' just beacuse of the tags) instead of
"..\IBPP\ibpp.h"
I know that I have to use static library, but I have no clue about them :)
akirilov wrote:
Well basically in my code I want to write
no, don't !
<>
is meant for the compiler that the include is to be searched from the includes in its installation folder. this is a C/C++ standard language feature and it is not what you want. what you want is to reduce the path in the include instruction, don't you ? well, if you include in the project settings the path to the folder containing theibpp.h
header file, you will then be able to do the following:#include "ibpp.h"
so, not using
<>
, but you reduced the relative path included. do that satisfy you now ?[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
-
akirilov wrote:
Well basically in my code I want to write
no, don't !
<>
is meant for the compiler that the include is to be searched from the includes in its installation folder. this is a C/C++ standard language feature and it is not what you want. what you want is to reduce the path in the include instruction, don't you ? well, if you include in the project settings the path to the folder containing theibpp.h
header file, you will then be able to do the following:#include "ibpp.h"
so, not using
<>
, but you reduced the relative path included. do that satisfy you now ?[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
Personally I don't care if it going to be <...> or "...". However, I have to change some things in a project written by someone else and ... I can't compile it ... for now. I hoped that if I try to stay as close to the environment that the other guy had, I will compile it. The program was written in DevC++ 4.0 ... no project, just a make file (can't compile trough it). I receive: [Linker error] undefined reference to IBPP::CheckVersion(unsigned int) and so on for all functions inside. So, this is the main reason for my question ... and I hoped around it to learn more about static library.