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. Where is Lib File?

Where is Lib File?

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studiodebuggingquestion
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
    Abhi Lahare
    wrote on last edited by
    #1

    Hi, I am creating a Win32 DLL, using VS.NET. I build the project and want to use functions from dll, but i am wondering where is the .lib file. the dll file is there in debug folder of project. any pointer will be helpful Thanks in advance Abhishake Lahare

    J C 3 Replies Last reply
    0
    • A Abhi Lahare

      Hi, I am creating a Win32 DLL, using VS.NET. I build the project and want to use functions from dll, but i am wondering where is the .lib file. the dll file is there in debug folder of project. any pointer will be helpful Thanks in advance Abhishake Lahare

      J Offline
      J Offline
      Jonathan Darka
      wrote on last edited by
      #2

      there may not be one, a dll is a dynamic library and a lib is a static library.


      Darka [Xanya] -- modified at 5:42 Wednesday 12th July, 2006 also a .lib file can be a type library for a .dll

      A 1 Reply Last reply
      0
      • J Jonathan Darka

        there may not be one, a dll is a dynamic library and a lib is a static library.


        Darka [Xanya] -- modified at 5:42 Wednesday 12th July, 2006 also a .lib file can be a type library for a .dll

        A Offline
        A Offline
        Abhi Lahare
        wrote on last edited by
        #3

        1)how can we confirm that it do not generate any lib file? 2)Whether that means you cannot statically link? Regards Abhishake Lahare

        J 1 Reply Last reply
        0
        • A Abhi Lahare

          1)how can we confirm that it do not generate any lib file? 2)Whether that means you cannot statically link? Regards Abhishake Lahare

          J Offline
          J Offline
          Jonathan Darka
          wrote on last edited by
          #4
          1. If there is no .lib file after you compile then it is not being generated 2) You cannot statically link to a dll (or at least not easily) see Dynamic Linking: Advantages and Disadvantages for quick comparision of static vs dynamic

          Darka [Xanya]

          1 Reply Last reply
          0
          • A Abhi Lahare

            Hi, I am creating a Win32 DLL, using VS.NET. I build the project and want to use functions from dll, but i am wondering where is the .lib file. the dll file is there in debug folder of project. any pointer will be helpful Thanks in advance Abhishake Lahare

            J Offline
            J Offline
            Jonathan Darka
            wrote on last edited by
            #5

            When you create the project for a DLL, you can specify whether you want to produce the .lib file too (export symbols checkbox) but i can't remember how you modify an existing project to do this.


            Darka [Xanya]

            1 Reply Last reply
            0
            • A Abhi Lahare

              Hi, I am creating a Win32 DLL, using VS.NET. I build the project and want to use functions from dll, but i am wondering where is the .lib file. the dll file is there in debug folder of project. any pointer will be helpful Thanks in advance Abhishake Lahare

              C Offline
              C Offline
              Chris Losinger
              wrote on last edited by
              #6

              see Property Pages / Configuration Properties / Linker / Advanced. put the path to the file you want to create in the field labeled "Import Library" (ex. "./Debug/MyDLL.lib") Cleek | Image Toolkits | Thumbnail maker

              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