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. Making a static labrary (to use <...> insted of "...")

Making a static labrary (to use <...> insted of "...")

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
6 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.
  • A Offline
    A Offline
    akirilov
    wrote on last edited by
    #1

    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

    C 1 Reply Last reply
    0
    • A akirilov

      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

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

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

      A 1 Reply Last reply
      0
      • C Cedric Moonen

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

        A Offline
        A Offline
        akirilov
        wrote on last edited by
        #3

        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 :)

        C T 2 Replies Last reply
        0
        • A akirilov

          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 :)

          C Offline
          C Offline
          Cedric Moonen
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • A akirilov

            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 :)

            T Offline
            T Offline
            toxcct
            wrote on last edited by
            #5

            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 the ibpp.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]

            A 1 Reply Last reply
            0
            • T toxcct

              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 the ibpp.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]

              A Offline
              A Offline
              akirilov
              wrote on last edited by
              #6

              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.

              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