[vbox-dev] svn : VirtualBoxImpl.cpp needs stdio.h
Antonio Augusto (Mancha)
mkhaos7 at gmail.com
Thu Apr 30 10:39:14 PDT 2009
On Thu, Apr 30, 2009 at 13:25, sean darcy <seandarcy2 at gmail.com> wrote:
> Building svn 19272 on Fedora 11, gcc-4.4:
> /home/vbox/rpmbuild/BUILD/vbox/src/VBox/Main/VirtualBoxImpl.cpp:1987: error: 'printf' was not declared in this scope
> but stdio.h is commented out in line 75. Uncommenting it allows svn to build.
> I assume stdio is not needed for gcc < 4.4 , but is there any reason not to leave it in?
Some compilers (or even some compilations of some compilers)
automatically implicitly add "default" stuff to every build you do.
Maybe the version of gcc that you are using is not one of these, but
the version the guys at Sun are using is.
Any way... the line that adds stdio should be uncommented for good
since this is non default behavior (For what I know).
More information about the vbox-dev