Home Download Buy Blog Forum Support

Run C++ in Linux terminal

Run C++ in Linux terminal

Postby mukintaras on Sat Sep 14, 2013 8:32 am

How shoud I change C++ build file to be able to run my software in new terminal window? The best way - is the run script like in the geany: program runs, working and after the end there'ssome information and terminal closes by hitting enter.
Current C== build file:
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",
         "cmd": ["bash", "-c", "g++ '${file}' -o '${file_path}/${file_base_name}' && '${file_path}/${file_base_name}'"]
      }
   ]
}
mukintaras
 
Posts: 2
Joined: Fri Aug 30, 2013 11:16 pm

Return to General Discussion

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 8 guests