Skip to main content



      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 08:13 Go to next message
Eclipse UserFriend
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 12:14 Go to previous message
Eclipse UserFriend
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
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: Tue May 06 01:46:35 EDT 2025

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

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

Back to the top