Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8294827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T14:21:48+00:00 2026-06-08T14:21:48+00:00

Good day! Can anyone share their experience how to attach MinGW-compiler to Sublime? I

  • 0

Good day!

Can anyone share their experience how to attach MinGW-compiler to Sublime?

I found a config in the internet, but when I run compiled program popping bugs with missing files from “../MinGW/bin/”.

Config:

{
   "cmd": ["mingw32-g++.exe", "-o", "$file_base_name", "$file_name"],
   "path": "c:\\Program Files\\MinGW\\bin\\"
}

Thanks!

UPD

I found answer for my question! I had to add one parameter in cmd. It’s "-static".

So, it’s my MinGW.sublime-build, which works fine:

{
    "path": "c:\\Program Files\\MinGW\\bin\\",
    "cmd": ["mingw32-g++.exe", "-static", "-o", "$file_base_name", "$file"]
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T14:21:49+00:00Added an answer on June 8, 2026 at 2:21 pm

    Make sure to include the bin file in the “Path” variable on your system.

    Open the start menu and type “variable” or “environment variable” (or google it) to find how to do it. You’ll get in a Window with a lot of variables, find the Path (and not PATH) variable and add the path to the bin folder of MinGW.

    And btw, as suggested, you should change file_base_name by file, and put file_base_name where you put file_base.

    Here’s the command I personally use:

    "cmd": ["C:\\MinGW\\bin\\mingw32-g++.exe", "-Wall", "-time", "$file", "-o", "$file_base_name"]

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good day! I have got a question about the Internet Explorer 9. Can anyone
Good day to all. I have a little problem. Can anyone tell me or
Good Day, Can someone confirm what was said at the bottom of this post
Hi and Good day to all, Google App Script can be used in so
Good day, I try to start new Activity from another. But it always crashed.
Can anyone share best practices for troubleshooting google anlytics code? Has anyone built a
Can anyone recomend a good javascript lib for working with Google Maps or Live
Good day guys, I would like to inquire if anyone of you may have
First day I use phpDocumentor and so far so good, but I have a
Good day all. how can i set my CSS in a way that each

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.