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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Link dependent libraries together withe the main EXE file

Link dependent libraries together withe the main EXE file

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelptutorial
5 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.
  • E Offline
    E Offline
    EdgarBM
    wrote on last edited by
    #1

    Hi, I need to know how can I link together all the dependent libraries of an EXE file in the way to only carry the EXE file betwen computers (not a special installation file but the same EXE with the libraries within). Anybody knows how to arrange this simple problem? Thanks in advance. Edgar :confused: Edgar Berengena Moreno Software Engineer La Salle University, URL. Barcelona, Spain.

    J 1 Reply Last reply
    0
    • E EdgarBM

      Hi, I need to know how can I link together all the dependent libraries of an EXE file in the way to only carry the EXE file betwen computers (not a special installation file but the same EXE with the libraries within). Anybody knows how to arrange this simple problem? Thanks in advance. Edgar :confused: Edgar Berengena Moreno Software Engineer La Salle University, URL. Barcelona, Spain.

      J Offline
      J Offline
      Joaquin M Lopez Munoz
      wrote on last edited by
      #2

      Anybody knows how to arrange this simple problem? IMHO this is no simple problem at all, if you're referring to linked DLLs. For MFC and the C run-time library, you can choose static linking, which produces an EXE that does not depend on the MFC and C run-time DLLs. As for other DLLs, I guess the closest you can get to what you want (without getting into a real mess) is having a packed installation EXE like those produced by InstallShield and similar products. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

      E 1 Reply Last reply
      0
      • J Joaquin M Lopez Munoz

        Anybody knows how to arrange this simple problem? IMHO this is no simple problem at all, if you're referring to linked DLLs. For MFC and the C run-time library, you can choose static linking, which produces an EXE that does not depend on the MFC and C run-time DLLs. As for other DLLs, I guess the closest you can get to what you want (without getting into a real mess) is having a packed installation EXE like those produced by InstallShield and similar products. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

        E Offline
        E Offline
        EdgarBM
        wrote on last edited by
        #3

        Hi, First of all thank you for your reply. I've been searching information on static linking, but I couldn't find how to do it. Do you know which is the way?, that's the solution I need... Thank you again. Edgar Edgar Berengena Moreno Software Engineer La Salle University, URL. Barcelona, Spain.

        J 1 Reply Last reply
        0
        • E EdgarBM

          Hi, First of all thank you for your reply. I've been searching information on static linking, but I couldn't find how to do it. Do you know which is the way?, that's the solution I need... Thank you again. Edgar Edgar Berengena Moreno Software Engineer La Salle University, URL. Barcelona, Spain.

          J Offline
          J Offline
          Joaquin M Lopez Munoz
          wrote on last edited by
          #4

          MFC: Project->Settings->General tab->Microsoft Foundation Classes combobox. C run-time library: Project->Settings->C/C++->Category:Code Generation->Use run-time library combobox. Un saludo, suerte con el proyecto. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

          E 1 Reply Last reply
          0
          • J Joaquin M Lopez Munoz

            MFC: Project->Settings->General tab->Microsoft Foundation Classes combobox. C run-time library: Project->Settings->C/C++->Category:Code Generation->Use run-time library combobox. Un saludo, suerte con el proyecto. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

            E Offline
            E Offline
            EdgarBM
            wrote on last edited by
            #5

            Gracias! ...no era tan difícil! (la próxima vez no me saltaré la pestaña de General tan a la brava). Gracias otra vez por el esfuerzo. Edgar Edgar Berengena Moreno Software Engineer La Salle University, URL. Barcelona, Spain.

            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