[GEM-dev] GemPBuffer.cpp:271: error: invalid conversion from 'GLint*' to 'long int*'
IOhannes m zmölnig
zmoelnig at iem.at
Wed Nov 4 09:44:42 CET 2009
Hans-Christoph Steiner wrote:
>
> Build error on Mac OS X 10.4/Intel. I almost have a new build server
> deployed:
>
> g++ -c -I/sw/include -I/sw/include/freetype2 -I..
> -I/usr/include/FTGL -I/usr/include/freetype2
> -I/Users/pd/auto-build/pd-devel/pd/src -DHAVE_CONFIG_H -I/sw/include
> -I/sw/include/FTGL -g -O2 -fPIC -freg-struct-return -Os -falign-loops=32
> -falign-functions=32 -falign-jumps=32 -funroll-loops -ffast-math -mmmx
> -fpascal-strings GemPBuffer.cpp -o ../Objects/GemPBuffer.o
> GemPBuffer.cpp: In constructor 'PBuffer::PBuffer(int, int, int)':
> GemPBuffer.cpp:269: error: invalid conversion from 'GLint*' to 'long int*'
> GemPBuffer.cpp:269: error: initializing argument 2 of 'CGLError
> CGLGetVirtualScreen(_CGLContextObject*, long int*)'
according to
http://developer.apple.com/mac/library/DOCUMENTATION/GraphicsImaging/Reference/CGL_OpenGL/Reference/reference.html#//apple_ref/c/func/CGLGetVirtualScreen,
the function "CGLGetVirtualScreen(CGLContextObj ctx, GLint *screen)" and
not "long int*".
either apple have broken their API without documenting it, or i'm
looking at the wrong place, or you are including some broken header-files.
could you try to find out where the
"CGLGetVirtualScreen(_CGLContextObject*, long int*)" is defined?
(simplest thing should be to just redeclare it as
CGLGetVirtualScreen(_CGLContextObject*, GLint*); and see whether the
compiler chokes on the previous declaration...)
> GemPBuffer.cpp:271: error: invalid conversion from 'GLint*' to 'long int*'
> GemPBuffer.cpp:271: error: initializing argument 3 of 'CGLError
> CGLChoosePixelFormat(const CGLPixelFormatAttribute*,
> _CGLPixelFormatObject**, long int*)'
the same should apply here.
fmasdr
IOhannes
More information about the GEM-dev
mailing list