vendredi 6 mars 2015

Compiling C on windows 8



I have installed MinGW with GCC and I also set the environment variables.


When I compile the helloworld.c, the command prompt shows up and then close immediately.


And I don't know what is wrong with it!


Here is my code for the build in sublime text 3.



{
"cmd": ["gcc", "-Wall", "-ansi", "-pedantic-errors", "$file_name", "-o", "${file_base_name}.exe", "&&", "start", "cmd", "/k" , "$file_base_name"],
"selector": "source.c",
"working_dir": "${file_path}",
"shell": true
}


Please kindly help.




Aucun commentaire:

Enregistrer un commentaire