|
2006-08-21
| ||
| 10:53 | • Closed ticket [1543715fff]: tclMacOSXNotify.c fails to compile plus 7 other ... artifact: eaead48813 user: das | |
| 10:29 | • Ticket [1543715fff]: 4 changes artifact: ee5f3c0a07 user: dgp | |
| 09:48 | • Ticket [1543715fff]: 4 changes artifact: c039882926 user: das | |
| 02:36 | • New ticket [1543715fff]. artifact: e16ad4bfc0 user: dgp | |
tclMacOSXNotify.c fails to compile
Closed / Fixed1543715fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2006-08-21 02:36:55
/Users/don/tcl/macosx/tclMacOSXNotify.c:245: error: initializer element is not constant
dasplain2006-08-21 09:48:01
Logged In: YES user_id=90580 hmm, that works for me, what OS and compiler versions do you use? I have: $ uname -v Darwin Kernel Version 8.7.0: Fri May 26 15:20:53 PDT 2006; root:xnu-792.6.76.obj~1/RELEASE_PPC $ gcc -v Using built-in specs. Target: powerpc-apple-darwin8 Configured with: /private/var/tmp/gcc/gcc-5363.obj~28/src/configure -- disable-checking -enable-werror --prefix=/usr --mandir=/share/man -- enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg] [^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with- slibdir=/usr/lib --build=powerpc-apple-darwin8 --host=powerpc-apple- darwin8 --target=powerpc-apple-darwin8 Thread model: posix gcc version 4.0.1 (Apple Computer, Inc. build 5363)
dgpplain2006-08-21 10:29:09
Logged In: YES user_id=80530 $ uname -v Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC $ gcc -v Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs Thread model: posix gcc version 3.3 20030304 (Apple Computer, Inc. build 1495)
dasplain2006-08-21 10:53:07
Logged In: YES user_id=90580 committd fix the problem was not the version of the compiler, but that unlike me, you don't have the MACOSX_DEPLOYMENT_TARGET env var set and thus don't automatically get 10.2 or later compiler flags like -fconstant-cfstrings...
Log in (anonymous is fine) to add a comment.