1

I've installed Sublime Text2 Portable, and I've installed MinGW portable on my pendrive. I changed cmd on c++.sublime-build to put locate relative path to g++.exe, but I get a error: Not Found.

How can indicate the relative path to compilation command?

SingerOfTheFall
  • 29,228
  • 8
  • 68
  • 105
calbertts
  • 1,513
  • 2
  • 15
  • 34
  • Is [this the same question?](http://stackoverflow.com/questions/13815493/sublime-text-build-system-that-just-make/13827685#13827685) – dbn Dec 17 '12 at 07:48

1 Answers1

2

You can:

  • indicate a path relative to Package Folder ${packages}; variable.
  • Or you can use the 'path' option.

Example:

...    
"cmd": ["${packages}/../../../../../usr/bin/g++", "${file}", "-o", "${file_path}/${file_base_name}"],
"path": "~/.:/usr/local/bin",
...

Others variables can be found here.

messivanio
  • 2,263
  • 18
  • 24