Author Topic: redirect standard output in pre/post build steps  (Read 8784 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: [Select]
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: [Select]
ARGS=-dSt target.elf > target.lst
in order to do
Code: [Select]
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: 4291
    • 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: [Select]
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.