On Jul 15, 2005, at 9:28, Justin C. Walker wrote:
On Jul 15, 2005, at 01:29 , Markian Hlynka wrote:
I've written some sample code below. This worked fine before, but I just upgraded to xcode 2.1 and tiger 10.4.2. Now it's broken. I need to be able to do this or else way lots of stuff breaks. Can someone help me find a solution, or understand what's going on? The problem seems to be in the typedef line. I don't actually need to do it for an int, but the error is the same. What's going on?
It would help us if you could tell us: - what the real error is ("it breaks near the typedef line" isn't helpful) - what version(s) of gcc you have used
I'm sorry. The error was in the subject line. I should have restated it: error: array bound is not an integer constant
And it breaks at the typedef line with gcc 4.0:
markian$ on s01060011249c8734:gccbug$> g++ bug.cc bug.cc:18: error: array bound is not an integer constant markian$ on s01060011249c8734:gccbug$> gcc -v Using built-in specs. Target: powerpc-apple-darwin8 Configured with: /private/var/tmp/gcc/gcc-5026.obj~19/src/configure --disable-checking --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^+.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/gcc/darwin/4.0/c++ --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8 Thread model: posix gcc version 4.0.0 (Apple Computer, Inc. build 5026)
|