Bug ID 1037786
Summary gl3wInit(); not found
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component X11 Applications
Assignee bnc-team-screening@forge.provo.novell.com
Reporter hans_juergen.greif@kabelbw.de
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Firefox/52.0
Build Identifier: 

Hello,

I have tried a simple opengl program and  I have trouble with the function 

 c++ -g  glfw.cpp -o glfw -lglew  -lglfw  -lstdc++ -lm
error: ���gl3wInit��� was not declared in this scope



int main( int argc, char *argv[]   )
{
  glfwInit();
  if (!glfwInit()) {
    printf("failed to initialize GLFW.\n");
    return -1;
  }

  glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
  glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
  glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);

  //printf("OpenGL %s, GLSL %s\n", glGetString(GL_VERSION),
glGetString(GL_SHADING_LANGUAGE_VERSION));


  GLFWwindow* window= glfwCreateWindow(640, 480,"Triangles", NULL, NULL);


  glfwMakeContextCurrent(window);
  cout << " print out! " << endl;




  gl3wInit();

  // init();



  //while( !glfwWindowShouldClose(window)  );
  //  {
  //    display();

  //    glfwSwapBuffers(window);

  //     glfwPollEvents(); 

  //  }


    //   glfwDestroyWindow(window);

    // glfw(Terminate();



  return 0;
}





Reproducible: Always

Steps to Reproduce:
c++ -g  glfw.cpp -o glfw -lglew  -lglfw  -lstdc++ -lm
Actual Results:  
1.gl3w not found
2.gl3w not found
3.gl3w not found

Expected Results:  
no error message

I did not found gl3w.h ! It that the cause ?


You are receiving this mail because: