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.
Code
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
Code
ARGS=-dSt target.elf > target.lst
in order to do
Code
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:

Code
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]