Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 8 years ago

Language

Compiler

Options

Author

anonymous

about 8 years ago

error

$
prog.cc: In function 'int run(unsigned char*, int, int)':
prog.cc:6:9: error: 'glfwInit' was not declared in this scope
         glfwInit();
         ^~~~~~~~
prog.cc:8:20: error: 'GLFW_CONTEXT_VERSION_MAJOR' was not declared in this scope
     glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:8:5: error: 'glfwWindowHint' was not declared in this scope
     glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
     ^~~~~~~~~~~~~~
prog.cc:9:20: error: 'GLFW_CONTEXT_VERSION_MINOR' was not declared in this scope
     glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:10:20: error: 'GLFW_OPENGL_FORWARD_COMPAT' was not declared in this scope
     glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); //needed on OSX
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:10:48: error: 'GL_TRUE' was not declared in this scope
     glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); //needed on OSX
                                                ^~~~~~~
prog.cc:11:20: error: 'GLFW_OPENGL_PROFILE' was not declared in this scope
     glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
                    ^~~~~~~~~~~~~~~~~~~
prog.cc:11:41: error: 'GLFW_OPENGL_CORE_PROFILE' was not declared in this scope
     glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
                                         ^~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:15:5: error: 'GLFWwindow' was not declared in this scope
     GLFWwindow *window = glfwCreateWindow(WINDOW_HEIGHT,WINDOW_WIDTH,WINDOW_TITLE,NULL,NULL);
     ^~~~~~~~~~
prog.cc:15:17: error: 'window' was not declared in this scope
     GLFWwindow *window = glfwCreateWindow(WINDOW_HEIGHT,WINDOW_WIDTH,WINDOW_TITLE,NULL,NULL);
                 ^~~~~~
prog.cc:15:17: note: suggested alternative: 'random'
     GLFWwindow *window = glfwCreateWindow(WINDOW_HEIGHT,WINDOW_WIDTH,WINDOW_TITLE,NULL,NULL);
                 ^~~~~~
                 random
prog.cc:15:43: error: 'WINDOW_HEIGHT' was not declared in this scope
     GLFWwindow *window = glfwCreateWindow(WINDOW_HEIGHT,WINDOW_WIDTH,WINDOW_TITLE,NULL,NULL);
                                           ^~~~~~~~~~~~~
prog.cc:15:57: error: 'WINDOW_WIDTH' was not declared in this scope
     GLFWwindow *window = glfwCreateWindow(WINDOW_HEIGHT,WINDOW_WIDTH,WINDOW_TITLE,NULL,NULL);
                                                         ^~~~~~~~~~~~
prog.cc:15:57: note: suggested alternative: 'WNOWAIT'
     GLFWwindow *window = glfwCreateWindow(WINDOW_HEIGHT,WINDOW_WIDTH,WINDOW_TITLE,NULL,NULL);
                                                         ^~~~~~~~~~~~
                                                         WNOWAIT
prog.cc:15:70: error: 'WINDOW_TITLE' was not declared in this scope
     GLFWwindow *window = glfwCreateWindow(WINDOW_HEIGHT,WINDOW_WIDTH,WINDOW_TITLE,NULL,NULL);
                                                                      ^~~~~~~~~~~~
prog.cc:15:70: note: suggested alternative: 'WNOWAIT'
     GLFWwindow *window = glfwCreateWindow(WINDOW_HEIGHT,WINDOW_WIDTH,WINDOW_TITLE,NULL,NULL);
                                                                      ^~~~~~~~~~~~
                                                                      WNOWAIT
prog.cc:15:26: error: 'glfwCreateWindow' was not declared in this scope
     GLFWwindow *window = glfwCreateWindow(WINDOW_HEIGHT,WINDOW_WIDTH,WINDOW_TITLE,NULL,NULL);
                          ^~~~~~~~~~~~~~~~
prog.cc:19:9: error: 'glfwTerminate' was not declared in this scope
         glfwTerminate();
         ^~~~~~~~~~~~~
prog.cc:23:5: error: 'glfwMakeContextCurrent' was not declared in this scope
     glfwMakeContextCurrent(window);
     ^~~~~~~~~~~~~~~~~~~~~~
prog.cc:26:12: error: 'glfwWindowShouldClose' was not declared in this scope
     while(!glfwWindowShouldClose(window)){
            ^~~~~~~~~~~~~~~~~~~~~
prog.cc:30:13: error: expected ';' before '}' token
     return 0
             ^
             ;
 }
 ~            
prog.cc:5:24: warning: unused parameter 'frame_buffer' [-Wunused-parameter]
 int run(unsigned char *frame_buffer, int w, int h){
         ~~~~~~~~~~~~~~~^~~~~~~~~~~~
prog.cc:5:42: warning: unused parameter 'w' [-Wunused-parameter]
 int run(unsigned char *frame_buffer, int w, int h){
                                      ~~~~^
prog.cc:5:49: warning: unused parameter 'h' [-Wunused-parameter]
 int run(unsigned char *frame_buffer, int w, int h){
                                             ~~~~^
Exit Code:
1