On 08-04-28, at 12:05, Rick Mann wrote:
I'm suddenly unable to link my project, and I'm fairly certain nothing has changed, other than a new Xcode.
cd /Users/rmann/LZRepo/SatTrackX/branches/CarbonNanoVersion/xcode /Developer/usr/bin/g++-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -L/Users/rmann/LZRepo/SatTrackX/branches/CarbonNanoVersion/xcode/build/Debug -L/Developer/Nano/NanoSVN/Library/Project/build/Debug -F/Users/rmann/LZRepo/SatTrackX/branches/CarbonNanoVersion/xcode/build/Debug -filelist /Users/rmann/LZRepo/SatTrackX/branches/CarbonNanoVersion/xcode/build/SatTrackX.build/Debug/SatTrackX.build/Objects-normal/i386/SatTrackX.LinkFileList -mmacosx-version-min=10.4 /Developer/Nano/NanoSVN/Library/Project/build/Debug/libNano.a -framework Carbon -framework QuickTime -framework Cocoa -framework Accelerate -framework Security -framework SystemConfiguration -framework WebKit -o /Users/rmann/LZRepo/SatTrackX/branches/CarbonNanoVersion/xcode/build/SatTrackX.build/Debug/SatTrackX.build/Objects-normal/i386/SatTrackX Undefined symbols: "_HIShapeContainsPoint", referenced from: NHIView::TrackingHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) in libNano.a(NHIView.o) "_HIShapeCreateWithRect", referenced from: NDockTile::DrawBadge(NHIView*, CGRect const&)in libNano.a(NDockTile.o) ld: symbol(s) not found collect2: ld returned 1 exit status "_HIShapeContainsPoint", referenced from: NHIView::TrackingHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) in libNano.a(NHIView.o) "_HIShapeCreateWithRect", referenced from: NDockTile::DrawBadge(NHIView*, CGRect const&)in libNano.a(NDockTile.o) ld: symbol(s) not found collect2: ld returned 1 exit status
Any suggestions?
In 10.4 HIShape is located in Carbon.framework proper. In 10.5, HIShape is located in ApplicationServices.framework. So, it's a problem when using the 10.5 SDK but targeting 10.4. Same thing with some AppleEvent stuff and a few of the new typedefs in Files.h.
I would try adding a -framework ApplicationServices to the linker options.
I see these calls are being made from Nano so maybe things won't be so simple⦠|