Dear Experts, I have a query. I want to compile C files using Sublime Text.
Well I got a solution. Made a “New Build System” . Pasted this code :
{
“shell_cmd” : “gcc $file_name -o ${file_base_name}”,
“working_dir” : “$file_path”,
“variants”:
[
{
“name”: “Run”,
“shell_cmd”: “gcc $file_name -o ${file_base_name} && ${file_path}/${file_base_name}”
}
]
}
But there is a problem.
If my C file name have spaces then it shows errors. If there is no spaces in the C file name, it compiles well.
I know the problem is of GCC Command.
But I want to ask that, if there is any way to modify the above “Build System” code , so that it can compile C file names which have spaces in them?