Mailinglist Archive: opensuse-bugs (4283 mails)

< Previous Next >
[Bug 1037786] New: gl3wInit(); not found
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Fri, 05 May 2017 12:04:29 +0000
  • Message-id: <bug-1037786-21960@http.bugzilla.opensuse.org/>
http://bugzilla.opensuse.org/show_bug.cgi?id=1037786


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@xxxxxxxxxxxxxxxxxxxxxx
Reporter: hans_juergen.greif@xxxxxxxxxx
QA Contact: qa-bugs@xxxxxxx
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:
You are on the CC list for the bug.
< Previous Next >
Follow Ups