Unless one of these things doesnt work, it is not a CodeBlocks problem and therefor not the place to be asked here, the poor people here have enough to do to take care about CodeBlocks issues, they cant help with others topics.īut congratulations, you found a dude on YouTube who is using languages features that should not be used for 20 years now and he is proposing these to people who start programming today. CodeBlocks isnt part of the c standards committee nor a compiler, it is basically a nice text editor that can launch many compilers. You either compile in c99 mode and get warnings or compile in any c mode and get errors.Īnd how is that related to CodeBlocks? Nothing it all! This is a question about c language features and compilers implementing them. Why doesnt it work for you? I dont know because you didnt provide enough information. Why does stahta01 get warnings and think you dont know the difference warning and error? Because he is compiling in c99 mode and gets warnings about it. Why is it working for the dude in the video? Because he is compiling the code in c89 mode. The feature you are using there was invented 30 years ago but was so bad that the c standards committee said it should not be used and removed it 20 years ago. Why is that so? Because you hit one of these total obscure c features. Process terminated with status 0 (0 minute(s), 2 second(s)) Run: Debug in test (compiler: GNU GCC Compiler)-Ĭhecking for existence: C:\Users\stahta01\devel\open_source_code\no_version_control\test\test\bin\Debug\test.exeĮxecuting: "C:\Program Files (x86)\CodeBlocks/cb_console_runner.exe" "C:\Users\stahta01\devel\open_source_code\no_version_control\test\test\bin\Debug\test.exe" (in C:\Users\stahta01\devel\open_source_code\no_version_control\test\test\.) Process terminated with status 0 (0 minute(s), 0 second(s))Ġ error(s), 2 warning(s) (0 minute(s), 0 second(s)) Output file is bin\Debug\test.exe with size 316.92 KB ![]() X86_64-w64-mingw32-gcc.exe -Wall -g -c C:\Users\stahta01\devel\open_source_code\no_version_control\test\test\main.c -o obj\Debug\main.oĬ:\Users\stahta01\devel\open_source_code\no_version_control\test\test\main.c: In function 'main':Ĭ:\Users\stahta01\devel\open_source_code\no_version_control\test\test\main.c:7:5: warning: implicit declaration of function 'sayHi' Ĭ:\Users\stahta01\devel\open_source_code\no_version_control\test\test\main.c: At top level:Ĭ:\Users\stahta01\devel\open_source_code\no_version_control\test\test\main.c:11:6: warning: conflicting types for 'sayHi'Ĭ:\Users\stahta01\devel\open_source_code\no_version_control\test\test\main.c:7:5: note: previous implicit declaration of 'sayHi' was here ![]() Build: Debug in test (compiler: GNU GCC Compiler). Clean: Debug in test (compiler: GNU GCC Compiler).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |