Author Topic: I don't know how to use Project->Set programs' arguments to provide arguments to  (Read 30543 times)

Offline ghader

  • Single posting newcomer
  • *
  • Posts: 2
Dear all,

I am new to Code Blocks IDE. I could not manage to pass arguments to the target program using this IDE. I mean that I don't know how to use Project->Set programs' arguments to provide arguments to my program.

Regards,
Hamidreza

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Hm, have you tried to enter some values to see what happens?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
See image attached. Make sure you operate on a project with valid targets.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline ghader

  • Single posting newcomer
  • *
  • Posts: 2
Thanks for the reply,

I got what the problem is. In that window of my codeblocks, the arguments' text box is such a small box that you could not even see it. I tried to maximize the window hoping that the text box would become bigger but it didn't change. How should I change its size to make it possible to enter program arguments there?

Regards,
Hamidreza

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
I tried to maximize the window hoping that the text box would become bigger but it didn't change.
That is weird and has never been reported. What platform / version (platform, C::B, wxWidgets) do you use?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

ubuntuLearner

  • Guest
Has anyone solved this problem?  I tried the solution listed on http://apt.jenslody.de but it still didn't fix the problem.  Thanks.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Has anyone solved this problem?  I tried the solution listed on http://apt.jenslody.de but it still didn't fix the problem.  Thanks.
Can you try what happens, if you replace the file "select_target.xrc" resource [C::B shared]\share\CodeBlocks\manager_resources.zip with the one in the attached the zip file, please?

It's very simple: just extract all the files, replace the one I've attached, re-zip them and replace the original ZIP.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline jingzhe

  • Single posting newcomer
  • *
  • Posts: 2
I use Ubuntu 11.10, cannot see parameter arguments in that dialog, after replace new select_target.xrc file, problem is solved.

By the way, in windows there is no any problem.

Offline dilocomosacha

  • Single posting newcomer
  • *
  • Posts: 3
Hi,

I updated to ubuntu 12.04 and i can not see how introduce the arguments the entry is missing, i followed your steps but it is giving me a error

Thanks

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
And the error is?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline dilocomosacha

  • Single posting newcomer
  • *
  • Posts: 3
Sorry, check attached file,

Thanks

[attachment deleted by admin]

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
C::B crashed and but where. Read the text in this dialog and probably you can find some useful info you can provide to us.

But this easiest way to fix this is to install a nightly build from jens repo -> http://apt.jenslody.de/
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline dilocomosacha

  • Single posting newcomer
  • *
  • Posts: 3
thanks, nightly build from jens repo fixed the problem

Hamad_Spider

  • Guest
I have reported a bug, related to this problem (invisible program arguments input box) in Launchpad, under the Ubuntu package of code::blocks.
Please go there and check "this bug affects me" if you have a same problem with code::blocks in Ubuntu.
Link to bug report:
https://bugs.launchpad.net/ubuntu/+source/codeblocks/+bug/1031904

Thank you.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
I have reported a bug, related to this problem (invisible program arguments input box) in Launchpad
Well you hopefully noticed that this bug is fixed since a rather long time in recent nightlies. Did you try one of these?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ