[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] printf needs #include <cstdio>
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] printf needs #include <cstdio> |
Date: |
Mon, 17 Aug 2009 12:17:36 -0700 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Mon, Aug 17, 2009 at 02:39:23PM -0400, Philip Balister wrote:
> In http://gnuradio.org/trac/changeset/11583 there are some files that
> use printf. With gcc-4.4 (on Fedora 11) these fail to compile unless you
> add #include <cstdio>.
Thanks.
> Before I look at fixing this by adding the include, is it "better" to
> fix by using iostream classes to replace the printf's? Do the gnuradio
> radio developers prefer one over the other?
I think either is fine. Sometimes printf is easier to use when you
want formatted output. Sometime std::cout << myobject is easier.
Please add the missing cstdio and commit it.
Eric