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. MinGW dependancies

MinGW dependancies

Scheduled Pinned Locked Moved C / C++ / MFC
helpannouncement
2 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.
  • J Offline
    J Offline
    James_722
    wrote on last edited by
    #1

    I'm not sure if I've given the proper label to my issue, but I have upgraded to the new version of MinGW and am now having trouble compiling my code in Codeblocks. The program runs fine when executed from Codeblocks, but once I try to run it from windows I get an error stating that I need a certain dll file for it to run. I found on a forum a linker option that has covered one of the required dlls but not all of them (-static-libgcc) What linker options can I use to get rid of all these dependancies, I don't care how large it makes my exe; I think its easier to live with a large exe than having to package dlls with my project. I appreciate any advise anyone has to offer.

    A 1 Reply Last reply
    0
    • J James_722

      I'm not sure if I've given the proper label to my issue, but I have upgraded to the new version of MinGW and am now having trouble compiling my code in Codeblocks. The program runs fine when executed from Codeblocks, but once I try to run it from windows I get an error stating that I need a certain dll file for it to run. I found on a forum a linker option that has covered one of the required dlls but not all of them (-static-libgcc) What linker options can I use to get rid of all these dependancies, I don't care how large it makes my exe; I think its easier to live with a large exe than having to package dlls with my project. I appreciate any advise anyone has to offer.

      A Offline
      A Offline
      Aescleal
      wrote on last edited by
      #2

      It depends what the DLL is. If it's one you've got the source for rebuild it as a static library (archive in MinGW terms) and link against that instead. If it's not then it might be time to look for a replacement or get rid of the code that uses that DLL. Cheers, Ash

      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