Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: blob84 on May 09, 2011, 07:44:43 pm

Title: codeblocks
Post by: blob84 on May 09, 2011, 07:44:43 pm
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;
}
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?