PDA

View Full Version : eclipse: run parameters


krisfrajer
May 11th, 2007, 06:44 PM
Hi

I have my eclipse GUI set up and I want to run a program. Where can I set up my [default] parameters associated to args of the main function i.e.

int main(int argc, void *argv[])

I am sure I have to navigate through one of the menus to set up this line but I could not find it. Otherwise I could jsut run it from the terminal window and it would solve my problem... I know... I just wnat to know how to do it throught the GUI.
Thxs, C.

FuturePast
May 11th, 2007, 07:07 PM
Doesn't eclipse have a Run... options dialog? (You're using the CDT, right?)

bedfordd
May 11th, 2007, 07:15 PM
What Eclipse plug-in do you use to debug C? If you use CDT, there here (http://www-128.ibm.com/developerworks/opensource/library/os-ecc/index.html#N1017C)is a great article on how to use it as well as how to pass in parameters.

krisfrajer
May 11th, 2007, 07:17 PM
yeah.. never mind.. I was looking for run.. option

but I was wrong... if I go to "run" right away I get the "run dialog" which allows me to set the parameters and other optios... haha getting used to eclipse. Thnks for the idea!

off from work.. have a great weekend everybody!