Faculty of Engineering and Mathematical Sciences 
Not logged in (login)

help3003


This forum is provided to promote discussion amongst students enrolled in Graphics and Animation (CITS3003).
 
Options:
RSS cloud
Jump to:

Compiling errors about scene-start.cpp

1 of 265 articles shown, currently no other people reading this forum.
photo
From: ANONYMOUS
Date: Tue 7th Apr, 8:26pm
Actions: 
        Login-to-reply
Hello, 

When I was trying to make an executable file with the original scene-start.cpp, 4 errors 
generated as below:
-----------------------------------------------------------------------------
scene-start.cpp:138:9: error: redefinition of 'buffer' with a different type:
      'GLuint [2]' vs 'GLuint [1]'
        GLuint buffer[2];
               ^
scene-start.cpp:126:12: note: previous definition is here
    GLuint buffer[1];
           ^
scene-start.cpp:141:43: error: use of undeclared identifier 'points'
    glBufferData( GL_ARRAY_BUFFER, sizeof(points), points, GL_STATIC_DRAW );
                                          ^
scene-start.cpp:141:52: error: use of undeclared identifier 'points'
    glBufferData( GL_ARRAY_BUFFER, sizeof(points), points, GL_STATIC_DRAW );
                                                   ^
scene-start.cpp:142:45: error: use of undeclared identifier 'program'
    GLuint vPosition = glGetAttribLocation( program, "vPosition" );
-----------------------------------------------------------------------------

They are all relative to "Mesh loading" with the Open Asset Importer library. 
You may see a GLunit Array named by "buffer" defined twice. 
Variables "points" and "program" are not correctly defined. 
I tried to address it but...
Does it suggest that the pre-compiled libassimp is not working on my personal computer? I'm 
using macOS 10.15.3.

Thanks.

Related articles

Compiling errors about scene-start.cpp (all 3) RSS
├─ THIS   Tue 7th Apr, 8:26pm, ANONYMOUS
├─ reply 1   Tue 7th Apr, 8:34pm, Matthew C.
└─ reply 2   Tue 7th Apr, 9:07pm, ANONYMOUS  O.P.
This Page


Program written by: [email protected]
Feedback welcome
Last modified:  8:27am May 24 2020