Home Download Buy Blog Forum Support

Link Sublime with compiler

Link Sublime with compiler

Postby Ice_Scream on Sun Jan 27, 2013 9:43 pm

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 :)
Ice_Scream
 
Posts: 3
Joined: Sun Jan 27, 2013 9:29 pm

Re: Link Sublime with compiler

Postby Ice_Scream on Sun Jan 27, 2013 11:40 pm

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 :

Code: Select all
[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 ?
Ice_Scream
 
Posts: 3
Joined: Sun Jan 27, 2013 9:29 pm

Re: Link Sublime with compiler

Postby Ice_Scream on Sun Jan 27, 2013 11:57 pm

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

Code: Select all
    {
      "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 :)
Ice_Scream
 
Posts: 3
Joined: Sun Jan 27, 2013 9:29 pm


Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 35 guests