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. One or many libraries?

One or many libraries?

Scheduled Pinned Locked Moved C / C++ / MFC
questioncsharpc++visual-studiojson
3 Posts 2 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.
  • M Offline
    M Offline
    Mauro Leggieri
    wrote on last edited by
    #1

    Hi, Time ago I began to create some static libraries of functions/classes in that I frequently use in my apps. Classes that uses MFC stuff is in one library and the rest of the stuff classified in another five. I "think" (please confirm) that having multiple library files make manteniance and changes compiling faster. Also I "believe" that Visual Studio compiler will be smart enough to NOT include all the object files of classes I don't use in my final executable. The question, including my 2 "thinks" above, is: "using separate library files has a real benefit?" Thanks, Mauro.

    _ 1 Reply Last reply
    0
    • M Mauro Leggieri

      Hi, Time ago I began to create some static libraries of functions/classes in that I frequently use in my apps. Classes that uses MFC stuff is in one library and the rest of the stuff classified in another five. I "think" (please confirm) that having multiple library files make manteniance and changes compiling faster. Also I "believe" that Visual Studio compiler will be smart enough to NOT include all the object files of classes I don't use in my final executable. The question, including my 2 "thinks" above, is: "using separate library files has a real benefit?" Thanks, Mauro.

      _ Offline
      _ Offline
      _Superman_
      wrote on last edited by
      #2

      You are correct on both counts. I would also suggest you convert the static libraries into dynamic libraries 'cause then you have a lot more options of either linking it implicitly or explicitly or even delay loading the DLL.

      «_Superman_» I love work. It gives me something to do between weekends.

      M 1 Reply Last reply
      0
      • _ _Superman_

        You are correct on both counts. I would also suggest you convert the static libraries into dynamic libraries 'cause then you have a lot more options of either linking it implicitly or explicitly or even delay loading the DLL.

        «_Superman_» I love work. It gives me something to do between weekends.

        M Offline
        M Offline
        Mauro Leggieri
        wrote on last edited by
        #3

        Yes. I was thinking in turning some libraries into dlls. I'm not friend of having an app of one .exe and lots of .dll, but sometimes there aren't other options. Best regards, Mauro.

        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