Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: ET on March 07, 2005, 12:45:48 pm

Title: Running non-Windows executables
Post by: ET on March 07, 2005, 12:45:48 pm
I'm looking to use Code::Blocks as a cross compiler. When I run the program, I want to run a command (the simulator) and provide the executable's name as a parameter. I tried using "Project \ Set execution parameters..." but I have the following problems:

1. I don't know what format to use to tell it what I need to tell it, i.e., to insert the exeutable's name into the parameters line.

2. I'm not sure what "This target provides the project's main executable" means. On the face of it, it sounds like it should be off, in my case. However, it's ticked whenever I enter the dialogue.
Title: Running non-Windows executables
Post by: mandrav on March 07, 2005, 01:59:07 pm
Quote
When I run the program, I want to run a command (the simulator) and provide the executable's name as a parameter

Currently, the parameters are only parameters. The executable is the one from the build target. If you want a different behaviour, please submit (http://sourceforge.net/tracker/?func=add&group_id=126998&atid=707419) a feature request.

Quote
I'm not sure what "This target provides the project's main executable" means

It's a convenience feature, for multi-target projects. you can mark one of the targets as the "main" executable so that the dialog displaying which target to run has the "main" target already selected.

Yiannis.