Ask Your Question
1

What are the linkers for OpenGL in MSYS2?

asked 2021-05-27 11:00:00 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-01-12 06:00:00 +0000

devzero gravatar image

The linkers for OpenGL in MSYS2 are typically the following libraries:

  • libGL
  • libglut
  • libGLEW
  • libglfw

To link these libraries, you can use the -l flag followed by the library name in your build commands. For example, to link libGL, you can use the command:

gcc myfile.cpp -lGL

You may also need to include additional directories for the linker to find the libraries. These directories typically include "/usr/lib" and "/usr/include".

For more detailed information on linking OpenGL in MSYS2, refer to the documentation provided by the MSYS2 project.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-05-27 11:00:00 +0000

Seen: 12 times

Last updated: Jan 12 '23