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 use library files.

How to use library files.

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
9 Posts 4 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.
  • P Offline
    P Offline
    Paulraj G
    wrote on last edited by
    #1

    Hi... I have to some static library files. I have added the library name in project setting. but the library files are not working... any help will be appriciated... Thanks...

    G.Paulraj

    C N 2 Replies Last reply
    0
    • P Paulraj G

      Hi... I have to some static library files. I have added the library name in project setting. but the library files are not working... any help will be appriciated... Thanks...

      G.Paulraj

      C Offline
      C Offline
      CPallini
      wrote on last edited by
      #2

      Paulraj G wrote:

      I have added the library name in project setting.

      You should:

      1. Add the .lib files as linker input (additional dependecies).
      2. Make Visual Studio aware of the folder(s) wherein such library files are (add the folders in the VC++ directories list).
      3. Include the appropriate headers in your source files.

      Paulraj G wrote:

      but the library files are not working...

      What (the fresh hell) does it mean? Could you, please, be more specific? :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      N 1 Reply Last reply
      0
      • P Paulraj G

        Hi... I have to some static library files. I have added the library name in project setting. but the library files are not working... any help will be appriciated... Thanks...

        G.Paulraj

        N Offline
        N Offline
        Nelek
        wrote on last edited by
        #3

        in grosso modo: Once per library: 1) Install the library. Unzip it to a directory or install it via a package manager. 2) Tell the compiler where to look for the header file(s) for the library. 3) Tell the linker where to look for the library file(s) for the library. Once per project: 5) Tell the linker which static or import library files to link. 6) #include the library's header file(s) in your program. 7) Make sure the program know where to find any dynamic libraries being used.

        Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpfull answers is nice, but saying thanks can be even nicer.

        1 Reply Last reply
        0
        • C CPallini

          Paulraj G wrote:

          I have added the library name in project setting.

          You should:

          1. Add the .lib files as linker input (additional dependecies).
          2. Make Visual Studio aware of the folder(s) wherein such library files are (add the folders in the VC++ directories list).
          3. Include the appropriate headers in your source files.

          Paulraj G wrote:

          but the library files are not working...

          What (the fresh hell) does it mean? Could you, please, be more specific? :)

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
          [My articles]

          N Offline
          N Offline
          Nelek
          wrote on last edited by
          #4

          tsk tsk, you don't know what "files not working" mean? It means, of course, they are playing cards or drinking cooffe insteads of answering the calls of the process and doing their job. Imagine it... they are so lazy that don't even give any error message.

          Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpfull answers is nice, but saying thanks can be even nicer.

          C C P 3 Replies Last reply
          0
          • N Nelek

            tsk tsk, you don't know what "files not working" mean? It means, of course, they are playing cards or drinking cooffe insteads of answering the calls of the process and doing their job. Imagine it... they are so lazy that don't even give any error message.

            Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpfull answers is nice, but saying thanks can be even nicer.

            C Offline
            C Offline
            CPallini
            wrote on last edited by
            #5

            :-D

            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
            This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
            [My articles]

            1 Reply Last reply
            0
            • N Nelek

              tsk tsk, you don't know what "files not working" mean? It means, of course, they are playing cards or drinking cooffe insteads of answering the calls of the process and doing their job. Imagine it... they are so lazy that don't even give any error message.

              Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpfull answers is nice, but saying thanks can be even nicer.

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

              Those library files, always reading books when they should be working...   :rolleyes:

              Cédric Moonen Software developer
              Charting control [v3.0] OpenGL game tutorial in C++

              1 Reply Last reply
              0
              • N Nelek

                tsk tsk, you don't know what "files not working" mean? It means, of course, they are playing cards or drinking cooffe insteads of answering the calls of the process and doing their job. Imagine it... they are so lazy that don't even give any error message.

                Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpfull answers is nice, but saying thanks can be even nicer.

                P Offline
                P Offline
                Paulraj G
                wrote on last edited by
                #7

                Hi... Thanks for both of your reply. M.D.V., I am not that kind of person. Due to some network problem, Internet connection was cancelled. thats why the delay... Sorry for the trouble...

                G.Paulraj

                C N 2 Replies Last reply
                0
                • P Paulraj G

                  Hi... Thanks for both of your reply. M.D.V., I am not that kind of person. Due to some network problem, Internet connection was cancelled. thats why the delay... Sorry for the trouble...

                  G.Paulraj

                  C Offline
                  C Offline
                  CPallini
                  wrote on last edited by
                  #8

                  What kind of person? For what I understood, he wrote about lazy libraries... :)

                  If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                  This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                  [My articles]

                  1 Reply Last reply
                  0
                  • P Paulraj G

                    Hi... Thanks for both of your reply. M.D.V., I am not that kind of person. Due to some network problem, Internet connection was cancelled. thats why the delay... Sorry for the trouble...

                    G.Paulraj

                    N Offline
                    N Offline
                    Nelek
                    wrote on last edited by
                    #9

                    :doh: Mmmm... so? I gave you an answer to your question and then I made a joke with the start point of one CPallini's comment (please pay attention to the "tree design" to see which message hangs on which other message and on the icons of "message type"). I never said anything about you. :rolleyes: :cool:

                    Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpfull answers is nice, but saying thanks can be even nicer.

                    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