Sublime Forum

Why is it impossible to run and compile c++ in sublime text2

#1

I have installed g++ correctly and still no luck. I even tried several different build systems and still no luck. At first it told that the problem was that that I didn’t have the libgmp-10.dll installed. I downloaded it and put it in the same bin folder as g++ but then afterwards it tells me that I need the libmpc -3.dll. This is getting extremely annoying -_-. what is the problem. I am running on windows and here is my current build system.

[code]{
“cmd”: “mingw32-g++.exe”, “-o”, “$file_base_name”, “$file”],

"variants": 

    {   
        "cmd": "start", "cmd", "/k", "$file_base_name"],
        "shell": true,
        "name": "Run"
    }
]

}[/code]

0 Likes

#2

Sounds like a path issue when running via a GUI. You can adjust what path is used via the “path” property. sublime-text-unofficial-document … stems.html

0 Likes

#3

I think I figured out the dll problems but now it gives me this error
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\cwchar:44:19: fatal error: wchar.h: No such file or directory
#include <wchar.h>
^
compilation terminated.
[Finished in 0.7s with exit code 1]

0 Likes