Sublime Forum

Running C program in sublime

#1

Actually, I built a new system so i could both compiled and ran my c program in sublime. I could compile the code, but when i tried to run the program, the console gave me this:

(gnome-terminal:8516): Gtk-ERROR **: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported
[Finished in 0.0s with exit code 133]Trace/breakpoint trap

And my system code is like this:

{
“cmd”: [“g++”, “$file”, “-o”, “${file_path}/${file_base_name}”],
“file_regex”: “^(…[^:]):([0-9]+):?([0-9]+)?:? (.)$”,
“working_dir”: “${file_path}”,
“selector”: “source.c, source.c++, source.cxx, source.cpp”,
“variants”:
[ { “name”: “Run”, “shell”: true, “cmd”: [“gnome-terminal -e ‘bash -c “${file_path}/${file_base_name};echo;echo; echo Press ENTER to continue; read line;exit; exec bash”’”] }
]
}

I’m on linux DeepinOS. Help me.

0 Likes