User forums > Using Code::Blocks

codeblocks

(1/1)

blob84:
Hi i use debian sqeeze 64bit, i installed codeblocks amd64,
I installed gdb but it doesn't work in codeblocks, it is not clickable, i moved to "settings">"compler and debugger">"toolchain executable" and i selected gdb from my usr directory ,but it's the same.
Another issue is when i want to run a program who needs an argument from command line, where should i put this command?
Example i have this echo.c source :
--- Code: ---#include <stdio.h>

int main(int argc, int *argv[])
{
while (--argc > 0)
printf((argc > 1) ? "%s " : "%s", *++argv);
printf("\n");

return 0;
}

--- End code ---
I want to pass hello, i move to "projects">"set programs arguments", i put "hello" in the text box, but after I pressed run, the window output doesn't show the word "hello", i get no output.
What's wrong?
 

Navigation

[0] Message Index

Go to full version