Seriously dude, thanks so much. I was literally using ssh to remotely access a linux computer to compile all my scripts. It was extremely slow and a terrible method. This is so much better!
Just to remember that the commands which I use is for ANSI C. You can to compile C without this standard just by deleting these commands from the compilation code: "-Wall", "-ansi", "-pedantic-errors"
+César Yapunari Nontol Rodríguez thanks. I've had a error compiling a for, something to do with the string lenght, I had to add "-std=c99" and then it worked.
if you want to run you r code in C99 instead of C90 then replace -ansi entry with '-std=c99' C99 in my opinion is much better since there is no problem in mixing declarations and code...
This is pretty much what I need but there seem to be a problem when it come to putting comments. I can't seem to find a valid a way on putting comments in my code using this build compared to other builds. This is the error: 1_10_16.c:27:1: error: expected identifier or '(' before '/' token //comment ^ Edit: After deleting the commands "-Wall", "-ansi", "-pedantic-errors" I can now put comments on my code. Thanks alot!
I'm having this error while trying to build 'gcc' is not recognized as an internal or external command, operable program or batch file. [Finished in 0.1s with exit code 1]
Hello, nice video, can you please explain why we should edit variabiles of the system? I talking about that part when you added into path variabile, path to the C:\MinGW\bin. Because when I dont do this step, gcc compile it with no problem too. (I can call gcc command from anywhere). I know PATH is to run programs from any dir, f.e. you can type calc in CMD from any dir and program will start. But I am asking if is there some other meaning.
I have an error when I run it: gcc: fatal error: input file 'Testc.exe' is the same as output file compilation terminated. [Finished in 0.1s] Any help?
There's no folder user in SublimeText package, when i create one and add MyC_sublime-build , i cannot find it in the build list in tools ... -.-' what the hell
Hi, thank You for the video. I have just one question. I saw that You have similar Build System for C++ called "myC++". Could You please post Sublime Build Code for that as well? Thank You.
'C:\Users\Mohammad\Documents\C' is not recognized as an internal or external command, operable program or batch file. [Finished in 0.6s]. please help me i m getting this error.
+jan O. Yeah, the code is in the video description. It was just copy and paste! "gcc" is required for C. "-Wall", "-ansi", "-pedantic-errors" are optional.
On my system sublime is working when cpp source file is in "C:\MinGW\bin". but it isn't working when source file is in some other location. How to fix it? Thanks in Advance
Rahul Gupta Hi! That happened because first you need to install GCC in your PC! See this video to install GCC: ruclips.net/video/DHekr3EtDOA/видео.html
Rahul Gupta In the MinGW Installation Manager (Basic Setup) you at least need to mark for installation "mingw32-base" and apply changes. By doing this GCC will be installed.
#include int main() { int n; float P; printf(" donner n "); scanf("%d", &n); P=n-2 9 ; printf("la resultat est : ",P); return 0; } this is the programme that i tried but but its not calculating the result donner n 9 la resultat est : and thats it why !
To me it wasn't able to find the executable so i changed the code like so: { "cmd": ["gcc", "-Wall", "-ansi", "-pedantic-errors", "$file_name", "-o", "${file_base_name}.exe", "&&", "start", "cmd", "/k" , "$file_base_name.exe"], "selector": "source.c", "working_dir": "${file_path}", "shell": true }
Can't express how useful this video is. Thanks man, you're the boss.
Seriously dude, thanks so much. I was literally using ssh to remotely access a linux computer to compile all my scripts. It was extremely slow and a terrible method. This is so much better!
I've tried so hard and luckily I found your video. And it's work :D Thanks you so much!
Thanks friend it works perfectly. You are a genius.
Just to remember that the commands which I use is for ANSI C. You can to compile C without this standard just by deleting these commands from the compilation code:
"-Wall", "-ansi", "-pedantic-errors"
+César Yapunari Nontol Rodríguez
thanks.
I've had a error compiling a for, something to do with the string lenght, I had to add
"-std=c99"
and then it worked.
+Miguel Soares Thanks man!
I still have errors with diferent programs :(
I started using the geany app. it's not sublime, but it has the same themes :P
bROTHER es mas simple invocando al compilador de C desde el CMD por que te complicas la vida ?
printf("Nice work my man thanks for the help. You saved my neck");
if you want to run you r code in C99 instead of C90 then replace -ansi entry with '-std=c99' C99 in my opinion is much better since there is no problem in mixing declarations and code...
It is 2023 and thanks a lot.
Thanks man!!..Very much appreciated.
Thanks Bud saved me a lot of time; ;)
Thanks. Great work!
thanks XD
notes:
remove this for compiling
"-Wall", "-ansi", "-pedantic-errors"
thanks, it works, where you know that?
Thank you........... you have saved me
hi hope u doing good
in this video when i went searching gcc.exe i didnt find it in my machine
can u help plz
Thank you very much for the video you've made,has been of great help.
A greeting.
You are the real MVP
This is pretty much what I need but there seem to be a problem when it come to putting comments. I can't seem to find a valid a way on putting comments in my code using this build compared to other builds.
This is the error:
1_10_16.c:27:1: error: expected identifier or '(' before '/' token
//comment
^
Edit: After deleting the commands "-Wall", "-ansi", "-pedantic-errors" I can now put comments on my code. Thanks alot!
Thanks a lot yaar!!!!!!!
Please post for cpp too
Thank You SIr. Works perfectly.
Thanks man! btw works with sublime text 3.2.2
Nice work, runnig perfect in my machine, thank you!
I'm having this error while trying to build
'gcc' is not recognized as an internal or external command,
operable program or batch file.
[Finished in 0.1s with exit code 1]
+Raven Oxford Have you fixed it? I've been looking for a while with no luck
ahahaha no, well not in my linux partion, in windows I think I did, I really don't remember :v since I've been using linux for a while now.
hey have anyone of you figured out how to solve this problem? please let me know!
thnx finally this worked i tried many codes :
Yeah baby
Hello, nice video, can you please explain why we should edit variabiles of the system?
I talking about that part when you added into path variabile, path to the C:\MinGW\bin.
Because when I dont do this step, gcc compile it with no problem too. (I can call gcc command from anywhere).
I know PATH is to run programs from any dir, f.e. you can type calc in CMD from any dir and program will start. But I am asking if is there some other meaning.
Thanks
Thanks. worked for me !
Is it possible to use powershell insted of cmd? I was tried to put wpsh but not working.
Buena!
I have an error when I run it:
gcc: fatal error: input file 'Testc.exe' is the same as output file
compilation terminated.
[Finished in 0.1s]
Any help?
Thanks bro
There's no folder user in SublimeText package, when i create one and add MyC_sublime-build , i cannot find it in the build list in tools ... -.-' what the hell
Thank Bro, It's working :)
+Veerawat D. You are welcome!
Please make a video for python too, like taking user input and running it on CMD
This is the third video about this topic that has had no audio. Is anyone else having this problem or is it just the people that make these videos?
Matthew Hancock Hi. Yes, I'm sorry, the video don't have audio with the instructions. It's because I just speak little English.
english would be nice and a worded instruction would be also fantastic
Hi, thanks for the video.
But what about the math.h library? Should I change anything in the commands?
Thank you
Estou tentando usar o math.h, mas apesar de compilar ele não retorna o valor correto.
Hi. Yes, just add "-lm" to the command and it should work.
thanks
yes
when i try the notepad++ method, it says "CreateProcess() with error code 2: system coudn't find the specified file", and it doesn't work at all.
Hi, thank You for the video. I have just one question. I saw that You have similar Build System for C++ called "myC++". Could You please post Sublime Build Code for that as well? Thank You.
Hi. I'm sorry, I don't know for c++.
+César Yapunari Nontol Rodríguez Nevermind. Thank You anyway. :)
'C:\Users\Mohammad\Documents\C' is not recognized as an internal or external command,
operable program or batch file.
[Finished in 0.6s].
please help me i m getting this error.
me aparece este error al compilar un programa que hize
fatal error: conio.h: No such file or directory
#include
i dont know what that mean you pasted at text on 1:01
could i use it despite the address of gcc is not same as you?
+jan O. Yeah, the code is in the video description. It was just copy and paste! "gcc" is required for C. "-Wall", "-ansi", "-pedantic-errors" are optional.
On my system sublime is working when cpp source file is in "C:\MinGW\bin". but it isn't working when source file is in some other location. How to fix it? Thanks in Advance
okay, and how about for ubuntu? would it work too?
Sublime Texte do the build correctly but the cmd do not start and i can't find the ".exe" ^^'
It's not working!
It says "gcc" is not recognized as internal or external command :(
Rahul Gupta Hi! That happened because first you need to install GCC in your PC!
See this video to install GCC:
ruclips.net/video/DHekr3EtDOA/видео.html
i installed minGW
how to install gcc?
Rahul Gupta In the MinGW Installation Manager (Basic Setup) you at least need to mark for installation "mingw32-base" and apply changes. By doing this GCC will be installed.
César Yapunari Nontol Rodríguez did that already!! No result
+Rahul Gupta Did you ever get it to work? I have it installed but it's telling me it doesn't recognize gcc
use dev-c++for c its the best one..
You can't use some files like graphics.h and others, yes it is, but most of users should work with graphics in C that only works in Dos compilers.
what for php and javascript???
do you have build code for c ++?
Can C# work with MinGw?
bro can you tell me how to do that same for c++
I'm sorry, I don't know. I did it just for C.
what is your path?
I got error in Sublime and Np++ lmao.....
C#
alguien sabe como hacerlo con c# ?
{
"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}"
}
]
}
este me sirvió
i followed the same steps but its not working ?? any help
Gee thnx it just did thnx so much
beside i need java code does any one have it ? plz !
well its not working well same trilers it does compilated but most of the time it doesnt
why ! !!!!
#include
int main()
{ int n;
float P;
printf(" donner n
");
scanf("%d", &n);
P=n-2 9
;
printf("la resultat est : ",P);
return 0;
}
this is the programme that i tried but
but its not calculating the result
donner n
9
la resultat est :
and thats it
why !
just use devc++ and get over with
To me it wasn't able to find the executable so i changed the code like so:
{
"cmd": ["gcc", "-Wall", "-ansi", "-pedantic-errors", "$file_name", "-o", "${file_base_name}.exe", "&&", "start", "cmd", "/k" , "$file_base_name.exe"],
"selector": "source.c",
"working_dir": "${file_path}",
"shell": true
}