John F. Richardson (richards++at++nosc.mil)
Tue, 09 Dec 1997 17:42:11 +0000
I have been porting perfly from performer 1.2 to 2.0. The 1.2 version has
been agmented with some custom code. I have been getting some really odd
compiler errors dealing with the performer header files.
In main.c
If I put #define PF_CPLUSPLUS_API 0 before the performer headers I get
the following (or leave it out):
cfe: Warning 605: /usr/include/Performer/pf/pfChannel.h: 37: #error "Cannot
include C++ API header with PF_CPLUSPLUS_API disabled."
+ LOTS MORE OF THESE ERRORS!!!!!!!!!!!! for various h files.
If I put #define PF_CPLUSPLUS_API 1 before the performer headers I get
the following:
cfe: Warning 596: /usr/include/Performer/pr/pfType.h: 95: text following
#endif violates the ANSI C standard.
cfe: Error: /usr/include/Performer/pf/pfLists.h: 128: Unterminated string
or character constant
cfe: Error: /usr/include/Performer/pf/pfUpdatable.h: 105: Unterminated
string or character constant
+ LOTS OF SAME ERROR for various .h files
In perfly.c
cfe: Error: /usr/include/X11/Xlib.h, line 1553: Functions cannot return
arrays
extern Cursor XCreatePixmapCursor(
---------------------------------^
cfe: Error: /usr/include/X11/Xlib.h, line 1564: Functions cannot return arrays
extern Cursor XCreateGlyphCursor(
--------------------------------^
cfe: Error: /usr/include/X11/Xlib.h, line 1575: Functions cannot return arrays
extern Cursor XCreateFontCursor(
-------------------------------^
cfe: Error: /usr/include/Performer/pfutil.h, line 445: Functions cannot
return arrays
extern Cursor pfuGetInvisibleCursor(void);
------------- ---------------------^
+ LOTS OF ERRORS similar to above in pfutil.h
Any ideas on the header file errors.
The code that was added to augment perfly for a specific flight simulator
has a bunch of performer 1.2 constants (tokens?) that seem to be undefined
in performer 2.0. I'm probably just missing some header files but I can't
seem to find any equivalents. Is there a document, place in the manuals or
some command that will describe all the performer constants and their
header locations in one contiguous text blurb?
PFTYPE_LOD PFTYPE_SEQUENCE PFTYPE_LAYER
PFTYPE_GEODE PFTYPE_BILLBOARD PFTYPE_SCS
PFTYPE_DCS PFCLASS_GROUP PFTYPE_SWITCH
PFIXF_TRACKBALL PFUXF_TRACKBALL PFUXF_DRIVE
PFUXF_FLY PFIXF_FLY PFIXF_DRIVE
John F. Richardson
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:21 PDT