Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Contributions to C::B => Topic started by: squirrel on April 11, 2007, 09:30:29 AM

Title: redirect standard output in pre/post build steps
Post by: squirrel on April 11, 2007, 09:30:29 AM
I want to redirect standard out in post build steps.
e.g.

objdump -dSt target.elf > target.lst

This works under linux, under windows the part of command line after ".elf" is omitted.

So I tried to def a custom variable like

ARGS=-dSt target.elf > target.lst

in order to do

objdump $(ARGS)

but C::B inserts quotes around ARGS and that approach does not work either.

Can you give ma a hint on how to define such a post build step?
Title: Re: redirect standard output in pre/post build steps
Post by: mandrav on April 11, 2007, 11:25:03 AM
Try this:


cmd /c objdump -dSt target.elf > target.lst
Title: Re: redirect standard output in pre/post build steps
Post by: aozima on October 04, 2008, 01:17:32 PM
Thanks!!!
I'm OK! (windows,WINAVR)


[attachment deleted by admin]