Author Topic: redirect standard output in pre/post build steps  (Read 12209 times)

squirrel

  • Guest
redirect standard output in pre/post build steps
« 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?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: redirect standard output in pre/post build steps
« Reply #1 on: April 11, 2007, 11:25:03 am »
Try this:

Code
cmd /c objdump -dSt target.elf > target.lst
Be patient!
This bug will be fixed soon...

Offline aozima

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: redirect standard output in pre/post build steps
« Reply #2 on: October 04, 2008, 01:17:32 pm »
Thanks!!!
I'm OK! (windows,WINAVR)


[attachment deleted by admin]
Sorry for my poor english.