Home Download Buy Blog Forum Support

run C++ programm in new window

run C++ programm in new window

Postby fenxi on Sun Apr 21, 2013 9:30 am

Hello!
How run c++ project in new window (like as codeblocks)?

OS:ubuntu 12.10 x86
compiler: g++
Code: Select all
{
   "cmd": ["g++", "${file}", "-o", "${file_path}/${file_base_name}"],
         "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
         "working_dir": "${file_path}",
         "selector": "source.c, source.c++",

   "variants":
   [
      {
         "name": "Run",
         "shell": true,  //! don't working. "true" - too.
         "cmd": ["bash", "-c",  "${file_path}/./${file_base_name}"  ]
      }
   ]
}


Thanks!
fenxi
 
Posts: 2
Joined: Sun Apr 21, 2013 9:24 am

Re: run C++ programm in new window

Postby fenxi on Sun Apr 21, 2013 11:13 am

Sorry.
I found solution:
Code: Select all
"cmd": ["bash", "-c", "g++ '${file}' -o '${file_path}/${file_base_name}' && xterm -T '${file_path}/${file_base_name}' -e '/usr/bin/cb_console_runner' '${file_path}/${file_base_name}' "]
fenxi
 
Posts: 2
Joined: Sun Apr 21, 2013 9:24 am


Return to Technical Support

Who is online

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