|
|
compiler help
|
|
|
|
Mac Elite
Join Date: Feb 2001
Location: adrift in a sea of decadent luxury and meaningless sex
Status:
Offline
|
|
Hi
I'm trying to compile this sample code in Project Builder. It comes with a CodeWarrior project that opens and compiles just fine, but I want to add this code to an existing Project Builder project. After hunting down all the #included header files, I am getting compile errors in Dialogs.h and Quickdraw.h, and I'm told I can't edit these files to remove the offending (unnecessary) code. Can anyone solve this mystery for me, or suggest a different way to compile this code?
here's the entire compiler output:
/usr/bin/jam -d1 JAMBASE=/Developer/Makefiles/pbx_jamfiles/ProjectBuilderJambase JAMFILE=- build ACTION=build _DEFAULT_GCC_VERSION=3.1 BUILD_STYLE=Development CPP_HEADERMAP_FILE=/Users/nsorscher/projects/qt/build/qt.build/qt.build/qt.hmap SRCROOT=/Users/nsorscher/projects/qt OBJROOT=/Users/nsorscher/projects/qt/build SYMROOT=/Users/nsorscher/projects/qt/build DSTROOT=/tmp/qt.dst
...updating 17 target(s)...
Cp /Users/nsorscher/projects/qt/build/qt.app/Contents/PkgInfo
BuildPhase <CopyResources>qt.app
Completed phase <CopyResources> for <CopyResources>qt.app
CompileC /Users/nsorscher/projects/qt/build/qt.build/qt.build/Objects-normal/ppc/ComFramework.o
/Developer/Headers/FlatCarbon/ControlDefinitions.h:1: warning: could not use precompiled header '/System/Library/Frameworks/Carbon.framework/Headers/Carbon-gcc3.p', because:
/Developer/Headers/FlatCarbon/ControlDefinitions.h:1: warning: macro 'GetDialogPort' defined by /Users/nsorscher/projects/qt/WinPrefix.h conflicts with precomp
/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24: warning: could not use precompiled header '/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices-gcc3.p', because:
/System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24: warning: macro 'GetPortBounds' defined by /Users/nsorscher/projects/qt/WinPrefix.h conflicts with precomp
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:5256: illegal external declaration, missing `;' after `CGrafPtr'
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXUIElement.h:16: warning: could not use precompiled header '/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices-gcc3.p', because:
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXUIElement.h:16: warning: macro 'GetPortBounds' defined by /Users/nsorscher/projects/qt/WinPrefix.h conflicts with precomp
/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/Dialogs.h:1907: illegal external declaration, missing `;' after `)'
/Developer/Headers/FlatCarbon/FileTypesAndCreators.h:1: warning: #warning FileTypesAndCreators.h is not available on Mac OS X
/Developer/Headers/FlatCarbon/Printing.h:1: warning: #warning Printing.h is not available on Mac OS X
/Developer/Headers/FlatCarbon/Traps.h:1: warning: #warning Traps.h is not available on Mac OS X
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
In file included from /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QD.h:42,
from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:30,
from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24,
from /Developer/Headers/FlatCarbon/ControlDefinitions.h:2,
from ComFramework.h:35,
from ComFramework.c:77:
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h:5256: parse error before "port"
In file included from /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/HIToolbox.h:81,
from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:29,
from /Developer/Headers/FlatCarbon/ControlDefinitions.h:2,
from ComFramework.h:35,
from ComFramework.c:77:
/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/Dialogs.h:1907: syntax error before "DialogRef"
/usr/bin/gcc3 -c -F/Users/nsorscher/projects/qt/build -I/Users/nsorscher/projects/qt/build/include "-arch" "ppc" "-fno-common" "-fpascal-strings" "-O0" "-Wmost" "-Wno-four-char-constants" "-Wno-unknown-pragmas" "-pipe" "-fmessage-length=0" "-mdynamic-no-pic" "-g" "-precomp-trustfile" "/Users/nsorscher/projects/qt/build/qt.build/qt.build/TrustedPrecomps.txt" "-Wp,-header-mapfile,/Users/nsorscher/projects/qt/build/qt.build/qt.build/qt.hmap" ComFramework.c -o /Users/nsorscher/projects/qt/build/qt.build/qt.build/Objects-normal/ppc/ComFramework.o
...failed CompileC /Users/nsorscher/projects/qt/build/qt.build/qt.build/Objects-normal/ppc/ComFramework.o ...
|
blackmail is such an ugly word. I prefer extortion. the X makes it sound cool
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|