Michael Hanke wrote:
Hi Valerio,
On Tue, Jan 22, 2008 at 01:01:10PM -0500, Valerio Luccio wrote:
Martin Michlmayr wrote:
Package: dicomnifti
Version: 2.28.10-2
Usertags: ftbfs-gcc-4.3
Your package fails to build with GCC 4.3. Version 4.3 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning. In GCC 4.3, the C++ header
dependencies have been cleaned up. The advantage of this is that
programs will compile faster. The downside is that you actually
need to directly #include everything you use (but you really should
do this anyway, otherwise your program won't work with any compiler
other than GCC). There's some more information about this at
http://gcc.gnu.org/gcc-4.3/porting_to.html
You can reproduce this problem with gcc-4.3 or gcc-snapshot from
unstable.
<snip>
The file dicominfo.cc explicitly sets "using namespace std", which includes
all of the above functions, such as 'stncmp'. Does this mean that in 4.3
you can no longer do that ? Do I have to set "using std:strcmp", etc. ?
No, that is still valid, but the file is missing (at least)
#include <cstring>
http://www.cyrius.com/journal/2007/05/10#gcc-4.3-include
Cheers,
Michael
I see, thanks, I'll do that.
BTW: the initial warnings, "INTSIZE redefined", have to do with the
Debian CTN package.
--
Valerio Luccio (212) 998-8736
Center for Brain Imaging 4 Washington Place, Room 156
New York University New York, NY 10003
"In an open world, who needs windows or gates?"
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]