News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

I don't know how to use Project->Set programs' arguments to provide arguments to

Started by ghader, October 18, 2011, 08:14:05 PM

Previous topic - Next topic

ghader

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

oBFusCATed

(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!]

MortenMacFly

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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

ghader

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

MortenMacFly

Quote from: ghader on October 19, 2011, 08:39:06 AM
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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

ubuntuLearner

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

MortenMacFly

Quote from: ubuntuLearner on March 09, 2012, 03:32:57 AM
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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

jingzhe

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.

dilocomosacha

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

oBFusCATed

(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!]

dilocomosacha


oBFusCATed

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!]

dilocomosacha


Hamad_Spider

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.

MortenMacFly

Quote from: Hamad_Spider on August 01, 2012, 10:35:19 PM
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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]