errors trying to compile with PMTicketRef
errors trying to compile with PMTicketRef
- Subject: errors trying to compile with PMTicketRef
- From: Bryan Pietrzak <email@hidden>
- Date: Thu, 8 Jul 2004 16:34:56 -0500
I'm trying to move our application from CW to Xcode and I'm getting an
error:
cd /Users/bpietrz/Projects/CVS/DexGraphics50
/usr/bin/gcc-3.3 -x c++ -arch ppc -pipe -Wno-trigraphs -fasm-blocks
-fpascal-strings -g -O0 -mtune=G4 -DDEBUG=1 -fmessage-length=0
-ffix-and-continue -fzero-link
-F/Users/bpietrz/Projects/CVS/DexGraphics50/build
-I/Users/bpietrz/Projects/CVS/DexGraphics50/build/include
-I/Users/bpietrz/Projects/CVS/DexGraphics50/build/DexGraphics50.build/
DexGraphics50.build/DerivedSources
-Wp,-header-mapfile,/Users/bpietrz/Projects/CVS/DexGraphics50/build/
DexGraphics50.build/DexGraphics50.build/DexGraphics.hmap -include
/Users/bpietrz/Projects/CVS/DexGraphics50/build/DexGraphics50.build/
SharedCaches/DexGraphics50_Prefix-blzrtziliuudxlboyuexfcnkerav/
DexGraphics50_Prefix.pch -c
/Users/bpietrz/Projects/CVS/DexGraphics50/source/Printing/
CPrintDialog.cpp -o
/Users/bpietrz/Projects/CVS/DexGraphics50/build/DexGraphics50.build/
DexGraphics50.build/Objects-normal/ppc/CPrintDialog.o
In file included from
/Users/bpietrz/Projects/CVS/DexGraphics50/source/Printing/
CPrintDialog.cpp:18:
/Users/bpietrz/Projects/CVS/DexGraphics50/source/Printing/
CPrintDialog.h:49: error: type specifier omitted for parameter
`PMTicketRef'
...
In file included from
/Users/bpietrz/Projects/CVS/DexGraphics50/source/Printing/
CPrintDialog.cpp:18:
/Users/bpietrz/Projects/CVS/DexGraphics50/source/Printing/
CPrintDialog.h:49: error: type specifier omitted for parameter
`PMTicketRef'
The definition (it's in a C++ file)
static OSStatus GetTicket (PMPrintSession session, CFStringRef
ticketID, PMTicketRef* ticketPtr);
PMTickets are in ApplicationServices/ApplicationServices.h
So I've added ApplicationServices.framework to this target. My .pch
file has (among other things)
#include <Carbon/Carbon.h>
#include <QuickTime/QuickTime.h>
#include <ApplicationServices/ApplicationServices.h>
I have Precompile Prefix Header checked on in the build styles.
Any ideas on what I'm doing wrong?
Bryan
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.