How to add a library to IDE or What exactly it means adding a library to IDE ??
-
First of all, i am new to c++. I am using Netbeans IDE with mingw compiler (as i am familiar with it in java development). I want to add a new library (some thing like port audio). I have copied the include files in the port audio to mingw's include library. Code suggest in netbeans is showing the headers and functions of port audio, But the build process showing erros like
undefined reference to `Pa_Initialize'
On the whole, what ever may be the IDE or what every may be the library to add, What to do inorder to add a library to build process??
-
First of all, i am new to c++. I am using Netbeans IDE with mingw compiler (as i am familiar with it in java development). I want to add a new library (some thing like port audio). I have copied the include files in the port audio to mingw's include library. Code suggest in netbeans is showing the headers and functions of port audio, But the build process showing erros like
undefined reference to `Pa_Initialize'
On the whole, what ever may be the IDE or what every may be the library to add, What to do inorder to add a library to build process??
This is really not a C++ question, rather one of how to use NetBeans. You should look at the project settings section of your project, where there should be some way of adding the reference to the library you are trying to use. Failing that you could try the NetBeans forum (if such a thing exists).
One of these days I'm going to think of a really clever signature.
-
First of all, i am new to c++. I am using Netbeans IDE with mingw compiler (as i am familiar with it in java development). I want to add a new library (some thing like port audio). I have copied the include files in the port audio to mingw's include library. Code suggest in netbeans is showing the headers and functions of port audio, But the build process showing erros like
undefined reference to `Pa_Initialize'
On the whole, what ever may be the IDE or what every may be the library to add, What to do inorder to add a library to build process??
C++ has to parts. - Compiling - Linking Header files are using in compiling. Libraries are used in linking. If you are getting a compile error then there is something wrong with your includes. If you are getting a link error then there is something wrong with your libraries OR something wrong with the way in which you used the includes. The latter is often caused by incorrectly using C code (from the library) in C++ code. For the most part it should never matter what order libraries are in.
-
C++ has to parts. - Compiling - Linking Header files are using in compiling. Libraries are used in linking. If you are getting a compile error then there is something wrong with your includes. If you are getting a link error then there is something wrong with your libraries OR something wrong with the way in which you used the includes. The latter is often caused by incorrectly using C code (from the library) in C++ code. For the most part it should never matter what order libraries are in.
@jschell Thanks for your response, And i just want to know one more thing. So, to add a library to build path, we must have the header files (.h) and also library files(.dll on windows)of that library. isn't it ?
-
@jschell Thanks for your response, And i just want to know one more thing. So, to add a library to build path, we must have the header files (.h) and also library files(.dll on windows)of that library. isn't it ?