Yes, I remember that being discovered before. minwindef.h has some #undef
and #define with near and far. Thanks for remembering....
--Chris
On Mon, May 23, 2016 at 9:07 AM, <[email protected]> wrote:
> -----Original Message----- From: kmx
> Sent: Sunday, May 22, 2016 6:19 PM
> To: [email protected]
> Subject: Re: [Pdl-general] CHM/OpenGL-0.6704_02.tar.gz released to CPAN
>
> gl_const.h: In function 'neoconstant':
>> gl_const.h:942:4: error: 'GL_TEXTURE_INDEX_SIZE_EXT' undeclared (first
>> use in this function)
>> i(GL_TEXTURE_INDEX_SIZE_EXT)
>> ^
>>
>
> Yes, I see the same with perl-5.22.0 (with both freeglut-2.8.1 and
> freeglut-3.0.0)
>
> Removing the offending symbol from gl_const.h fixed that issue for me.
> But then a bit later on:
>
> ########################################
> ..........
> pogl_matrix.xs: In function 'set_data_frustrum':
> pogl_matrix.xs:119:5: error: parameter name omitted
> GLfloat left, GLfloat right, GLfloat top, GLfloat bottom, GLfloat
> near, GLfloat far)
> ^
> pogl_matrix.xs:119:5: error: parameter name omitted
> ########################################
>
> This led me to a strong sense of deja-vu, though I haven't gone digging to
> find out exactly why that might have been so ;-)
>
> In short, in pogl_matrix.xs, I changed the name of every variable named
> 'near' to a variable named 'n', and every variable named 'far' to a
> variable named 'f'.
>
> The patch (to both gl_const.h and pogl_matrix.xs) is attached.
>
> After that, 0.6704_02 built and tested fine for me - but only against
> freeglut-2.8.1.
> As I reported shortly after freeglut-3.0.0 was released, the teapot demo
> (that gets run as part of the test suite) crashes with freeglut-3.0.0.
>
> NOTE: I'm not saying the attached patch is portable - it's merely what I
> used to get the thing to build and pass its test suite (including the
> teapot demo) on Windows.
>
> Cheers,
> Rob
>
>
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
pdl-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdl-general