View Issue Details

IDProjectCategoryView StatusLast Update
0000820AIAIpublic2009-02-21 16:44
Reporterhoijui Assigned Totrepan  
PrioritynormalSeverityblockReproducibilityalways
Status resolvedResolutionfixed 
Summary0000820: [Compile Error] LuaFBOs.cpp does not compile with mingw
Descriptioncompiling on WinXP with mingw, phyton 2.5, i got a compile error in LuaFBOs.cpp.

for the line 346:
glDrawBuffersARB(buffers.size(), buffers.data());
i got an erro stating that buffers has no member data. buffers is declared as follows:
vector<GLenum> buffers;

to let it compile, i changed the aqbove mentioned line to:
glDrawBuffersARB(buffers.size(), (GLenum*) buffers.front());

now it compiles, which is fine for me, though i have no idea if this will work ;-)
so someone pls check this.
thanks
Additional Informationthe patch file just does what i explained in the description
TagsNo tags attached.
Attached Files
LuaFBOs.cpp.diff (Attachment missing)

Activities

trepan

2008-01-19 22:21

reporter   ~0001870

mingw32 compiler version?

hoijui

2008-01-20 16:37

reporter   ~0001871

gcc --version
gcc (GCC) 3.4.2 (mingw-special)

(simply installed the latest Dev-Cpp 5 (Beta), more specific: 4.9.9.2)

trepan

2008-01-20 17:51

reporter   ~0001873

Looks like vector.data() is an extension.
I'll revert to the previous version that
created a GLenum array (and no, your patch
is not the right way to do it ;-)

hoijui

2009-02-21 16:43

reporter   ~0003308

a problem wiht mantis?
this still appeared under unassigned issues.

Issue History

Date Modified Username Field Change
2008-01-19 20:25 hoijui New Issue
2008-01-19 20:25 hoijui File Added: LuaFBOs.cpp.diff
2008-01-19 22:21 trepan Note Added: 0001870
2008-01-19 22:22 trepan Status new => feedback
2008-01-20 16:37 hoijui Note Added: 0001871
2008-01-20 17:51 trepan Note Added: 0001873
2008-01-20 17:51 trepan Status feedback => resolved
2008-01-20 17:51 trepan Resolution open => fixed
2009-02-21 16:43 hoijui Assigned To => hoijui
2009-02-21 16:43 hoijui Note Added: 0003308
2009-02-21 16:43 hoijui Status resolved => feedback
2009-02-21 16:43 hoijui Resolution fixed => reopened
2009-02-21 16:43 hoijui Status feedback => assigned
2009-02-21 16:43 hoijui Assigned To hoijui => trepan
2009-02-21 16:44 hoijui Status assigned => resolved
2009-02-21 16:44 hoijui Resolution reopened => fixed