Need help getting Code:Blocks to work
whiteoxe
Posts: 794
I had it working on another machine. Code:Blocks is in the Mint software repository. I installed it and wrote a hello world console app. it has an error that it can't find stdio.h
I cant remember what I did last time to get it working , I think i just went to 'SETTINGS' , got confused ,clicked OK. Then it worked. or maybe i download3ed something ?
Build: Debug in mikesTrial (compiler: GNU GCC Compiler)
gcc -Wall -g -march=athlon -Wextra -Wall -ansi -D#include <stdio.h> -D#nclude <stlib.h> -c "/home/doom/Documents/codeblocks programs/mikesTrial/main.c" -o obj/Debug/main.o
/bin/sh: 1: cannot open stdio.h: No such file
Process terminated with status 2 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
I cant remember what I did last time to get it working , I think i just went to 'SETTINGS' , got confused ,clicked OK. Then it worked. or maybe i download3ed something ?
Build: Debug in mikesTrial (compiler: GNU GCC Compiler)
gcc -Wall -g -march=athlon -Wextra -Wall -ansi -D#include <stdio.h> -D#nclude <stlib.h> -c "/home/doom/Documents/codeblocks programs/mikesTrial/main.c" -o obj/Debug/main.o
/bin/sh: 1: cannot open stdio.h: No such file
Process terminated with status 2 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
Comments
I never got anywhere.. too many other irons in the fire.
I simply decided to keep things simple and use what I am sure Parallaxians are keeping up-to-date. If you desire to use Code:Blocks, you may have to provide all the mentoring and maintenance for other Parallaxians.
The idea is that new software tools generally get accepted by having someone in a sponsorship role. Expecting the old-timers to add to their already busy agendas is awkward at best.
I know nothing about Code::Blocks but I'm guessing there is a dialogue box in there somewhere for setting "defines", Those "-D..." things, and that you have them in there. Remove them.
If main.c is the only file of this program can you go to a console, change to the directory where that file is and type: That should at least compile you file, assuming it has no coding errors in it, and produce an executable called main.
I suggest changing you user name from "doom" to someting more optimistic:)
Ahhh... i just installed from the mint repository and tried to run the hello world , it dsidn't work. I really dont want to care about finding out why at the moment. I have posted on the code:blocks forum. If i get a reponse i might fix it. But Im not going to waste much time on it. I dont have a real need for code:blocks. But it's annoying that i get the error ;-)
I havent a clue why the trouble in Mint. Myu biggest problem is I'm outta milk and I want a cup of tea at 10:30pm before i hit the sack
That's pretty sad if even hello world doesn't work. `gcc helloworld.c -o helloworld` in a terminal should be enough to compile such a trivial program.
Do you still have your Mint install? In case your Hello World was different, try this one in Codeblocks in a new project with just the default compiler/linker/IDE/etc. settings and see if it works:
I'll post when I have the solution ! thanks again, Mike.