User forums > Using Code::Blocks
Passing command-line arguments
archwndas:
Dear all,
I start a console project. Unfortunately I cannot pass
command line arguments. I googled around and I even
searched this forum for similar posts. The guidlines do
not work. In my case the child window for passing command
line arguments doesn't have a line-edit (in qt terminology)
to pass arguments under the corresponding label.
I have the latest code-blocks 10.05.
oBFusCATed:
Have you tried Project->Set program's arguments?
archwndas:
--- Quote from: oBFusCATed on December 31, 2011, 02:12:28 pm ---Have you tried Project->Set program's arguments?
--- End quote ---
Take a look at the attached file. Of course I tried it.
There in nowhere to put them in the child window.
I mentioned that already. But to clear things up and
be more precise, I have attached the window itself,
so you can see for yourselves that there is nowhere
to pass the arguments.
oBFusCATed:
Ah, the ubuntu problem, see here for details: http://forums.codeblocks.org/index.php/topic,15516.0.html
The easiest way to fix this is to use a nightly build from apt.jenslody.de
Also you can report this to the maintainer of C::B in ubuntu, so he can patch it and then you can use 10.05 instead of a nightly build.
This is the change:
--- Quote ---http://svn.berlios.de/wsvn/codeblocks?op=comp&compare[]=%2Ftrunk%2Fsrc%2Fsdk%2Fresources%2Fselect_target.xrc@7544&compare[]=%2Ftrunk%2Fsrc%2Fsdk%2Fresources%2Fselect_target.xrc@7579
--- End quote ---
archwndas:
--- Quote ---I've just fixed it yesterday. It will be in the next nightly or you could apply the patch yourself (I've done so:) ).
Just replace the file in the /usr/share/codeblocks/manager_resources.zip and it the problem will be gone.
--- End quote ---
Sorry but the suggestion above doesn't help. What is missing is the "file" (what file, which, were?).
And of course where this file can be downloaded.
Furthermore, about the night builds.
After installing the extra lines in /etc/apt/sources.list and running
apt-get update
There are a few options that appear, but it is not clear what to install.
So, it is a dead end for me.
I do not know what to do. Could you please help a bit?
Navigation
[0] Message Index
[#] Next page
Go to full version