User forums > Using Code::Blocks

Howto debug applications which needs piped input on stdin?

<< < (2/2)

Lambertus:

--- Quote from: jens on May 01, 2010, 01:12:33 pm ---There is a possible workaround:

In postbuild-step add bzcat europe.osm.bz2 > europe.osm,
and add < europe.osm as program argument in "Project -> Set programs's arguments..." for the used target.

This should work if europe.osm.bz2 is in the Execution working dir of the target, otherwise you have to fix the path(s).

--- End quote ---
Thanks, the "<" bit was very useful, I didn't think of it earlier. So actually its even simpler: unpack the europe.osm.bz2 outside CB just once and just add

rebuild < europe.osm

to the program's arguments...

Thanks a lot!

Navigation

[0] Message Index

[*] Previous page

Go to full version