Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Problem with passing arguments in eclipse CDT
Problem with passing arguments in eclipse CDT [message #231009] Mon, 02 March 2009 13:13 Go to next message
nezhateru is currently offline nezhateruFriend
Messages: 20
Registered: July 2009
Junior Member
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
Re: Problem with passing arguments in eclipse CDT [message #231102 is a reply to message #231009] Tue, 03 March 2009 17:14 Go to previous message
Axel Mueller is currently offline Axel MuellerFriend
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
Previous Topic:how to debug windows dll
Next Topic:Source files in tree not added to container in external makefile project?
Goto Forum:
  


Current Time: Sat Nov 02 21:47:23 GMT 2024

Powered by FUDForum. Page generated in 0.02808 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top