News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

How to specify command line arguments (args[]) in project build settings

Started by blipton, January 18, 2015, 11:10:07 PM

Previous topic - Next topic

blipton

I'm trying to debug an application that uses a filename supplied by the user at run-time via the command line.

How can I specify an argument in the project settings so that when the debugger launches it sees 2 arguments (the program name, and the string I specified)?

I know in MS Visual Studio, the project's properties has a debug section where you can specify it, but can't seem to find anything like that in CodeBlocks?



Thanks!

BlueHazzard


blipton

Doh!   Thanks,  here I was looking for it in all the build option menus!