Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to add a library to IDE or What exactly it means adding a library to IDE ??

How to add a library to IDE or What exactly it means adding a library to IDE ??

Scheduled Pinned Locked Moved C / C++ / MFC
c++javavisual-studiotutorialquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SanjeevCharla
    wrote on last edited by
    #1

    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??

    L J 2 Replies Last reply
    0
    • S SanjeevCharla

      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??

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • S SanjeevCharla

        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??

        J Offline
        J Offline
        jschell
        wrote on last edited by
        #3

        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.

        S 1 Reply Last reply
        0
        • J jschell

          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.

          S Offline
          S Offline
          SanjeevCharla
          wrote on last edited by
          #4

          @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 ?

          J 1 Reply Last reply
          0
          • S SanjeevCharla

            @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 ?

            J Offline
            J Offline
            jschell
            wrote on last edited by
            #5

            You must specify both somewhere. And it will be in different locations.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups