Sublime Forum

Link Sublime with compiler

#1

Hi there,

I’m sorry if my question looks totally retarded but here it is:
i’ve buy this editor for my web dev stuff and btw i’m fully happy with this, but now i wanted to know if it was possible to “link” it with a compiler. and if yes how ?

Sorry for any english mistake this is not my mother language…

Ty :smile:

0 Likes

#2

Hey hum even if got no answer i found how to link the ide with the compiler but still have issue,
here is what i’ve done :

1-Download MinGW (for pc runing on Windows Seven)
2-install it (no error) in “C:\MinGW”
3-go on the environment variables thing
4-create a PATH variable
5-Affect it the value : “%PATH%;C:\MinGW\bin”
6-then i try if it worked buy typing g++ which retrun no input files which is i think a good thing

but here is my issue when i’m trying to run a program after bulding it (without error) the system retrun me this :

[Decode error - output not utf-8] [cmd: [u'bash', u'-c', u"g++ 'C:\\Users\\ice\\Desktop\\main.c' -o 'C:\\Users\\ice\\Desktop/main' && 'C:\\Users\\ice\\Desktop/main'"]] [dir: C:\Users\ice\Desktop] [path: C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\QuickTime\QTSystem\;C:\MinGW\bin] [Finished]
i don’t know why … any help maybe it’s beacause i haven’t linked the file ?

0 Likes

#3

And i found it again :3
i’ve used this methode :

{ "cmd" : "gcc", "$file_name", "-o", "${file_base_name}.exe", "&&", "${file_base_name}.exe"], "selector" : "source.c", "shell" : true, "working_dir" : "$file_path" }

Hope this thread will help noobs like me to use it :smile:

0 Likes