Re: [Pyobjc-dev] doc-based project, bin-python-main.m does not compile
Brought to you by:
ronaldoussoren
From: Bill D. <wdd...@ma...> - 2003-07-05 19:38:29
|
Ronald, this is confusing: [gigabook:~/build/pyobjc-1.0b1] daddy% which gcc /usr/bin/gcc [gigabook:~/build/pyobjc-1.0b1] daddy% 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 1435) [gigabook:~/build/pyobjc-1.0b1] daddy% [gigabook:~/build/pyobjc-1.0b1] daddy% gcc_select Current default compiler: gcc version 3.3 20030304 (Apple Computer, Inc. build 1435) [gigabook:~/build/pyobjc-1.0b1] daddy% However, PB only gives 2.95 and 3.1 as choices (3.1 is selected). In the build window, though: /Developer/Private/jam -d1 -j1 JAMBASE=/Developer/Makefiles/pbx_jamfiles/ProjectBuilderJambase JAMFILE=- build ACTION=build _DEFAULT_GCC_VERSION=2.95.2 BUILD_STYLE=Development CPP_HEADERMAP_FILE=/Users/daddy/Desktop/pydoctest/build/ pydoctest.build/pydoctest.build/pydoctest.hmap SRCROOT=/Users/daddy/Desktop/pydoctest OBJROOT=/Users/daddy/Desktop/pydoctest/build SYMROOT=/Users/daddy/Desktop/pydoctest/build DSTROOT=/tmp/pydoctest.dst ... BuildPhase <CopyResources>pydoctest.app CompileC /Users/daddy/Desktop/pydoctest/build/pydoctest.build/pydoctest.build/ Objects-normal/ppc/bin-python-main.o /usr/bin/gcc2 -c -F/Users/daddy/Desktop/pydoctest/build -I/Users/daddy/Desktop/pydoctest/build/include -arch ppc -fno-common -fpascal-strings -O0 -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -pipe -g -precomp-trustfile /Users/daddy/Desktop/pydoctest/build/pydoctest.build/pydoctest.build/ TrustedPrecomps.txt -Wp,-header-mapfile,/Users/daddy/Desktop/pydoctest/build/ pydoctest.build/pydoctest.build/pydoctest.hmap bin-python-main.m -o /Users/daddy/Desktop/pydoctest/build/pydoctest.build/pydoctest.build/ Objects-normal/ppc/bin-python-main.o I am neither a PB nor a jam expert. Where is _DEFAULT_GCC_VERSION set? Thanks, Bill On Saturday, July 5, 2003, at 02:26 PM, Ronald Oussoren wrote: > > On Saturday, 5 July, 2003, at 20:43, Bill Dozier wrote: > >> Hi All, >> >> bin-python-main.m does not compile. There are errors due to >> variables not being declared early enough. >> >> Does this code compile for anyone else? I'd love to be able to >> declare variables later, C++ style, if obj-c can allow it. > > What compiler are you using? The default compiler on OSX 10.2 should > be gcc 3.1, and that allows "C++ style" declarations, GCC 2.95 > doesn't. You can check the default compiler using 'gcc_select'. > > Ronald > |