|
Re: Problem with passing arguments in eclipse CDT [message #231102 is a reply to message #231009] |
Tue, 03 March 2009 17:14 |
Axel Mueller Messages: 1973 Registered: July 2009 |
Senior Member |
|
|
nezhateru wrote:
> Hi all,
> I have a program that has input arguments.
> Under eclipse I must go to Run/Run configuration and in arguments tab I
> must define all arguments using button "variable" with their value.
> Then when running configuration I'm getting problem:
> No argument is passed to my program. I tested my program in command line
> like this and all works fine:
> $ ./test_param -a 2 -b 5 -c 7
Just enter in the arguments tab your list of arguments ("-a 2 -b 5 -c 7")
as you did on the command line (AFAIK you have to quote the list if there
are spaces). No need to use the variables button. This is only necessary
if you want to do somehting like this "-a {MYVAR}".
Axel
Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
|
|
|
Powered by
FUDForum. Page generated in 0.02808 seconds