User forums > Using Code::Blocks

Running non-Windows executables

(1/1)

ET:
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.

mandrav:

--- Quote ---When I run the program, I want to run a command (the simulator) and provide the executable's name as a parameter
--- End quote ---

Currently, the parameters are only parameters. The executable is the one from the build target. If you want a different behaviour, please submit a feature request.


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

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.

Navigation

[0] Message Index

Go to full version