C++ Linker Error

Sid Kraft 46 Reputation points
2026-07-15T17:52:07.2533333+00:00

Running Visual Studio, C++. Removed all references for the C/C++ and VC++ to additional libraries. Removed any references for the linker library, downloaded and executed the command under the Power Shell to load vcpkg, i.e. vcpkg integrate install, was shown as successful. added the following statements to my C++ program:

#include <GL/gl.h>

'

.

.

glTranslatef(-.3,0.,0.);

Issued File Reload, received the following error from the system:

unresolved symbol_imp_glTranslatef

something wrong some where, any advice will be helpful, Sid Kraft

Developer technologies | C++
Developer technologies | C++

A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Nancy Vo (WICLOUD CORPORATION) 7,495 Reputation points Microsoft External Staff Moderator
    2026-07-16T03:32:29.8166667+00:00

    Hello @Sid Kraft ,

    Thanks for your question.

    The error unresolved symbol_imp_glTranslatef means your program knows the command exists, but cannot find the code to run it. Because you removed the linker library references, Visual Studio cannot find the standard Windows OpenGL library.

    You can refer to these following steps:

    • Right-click your Project in Visual Studio and select Properties.
    • Go to Linker > Input.
    • In Additional Dependencies, add opengl32.lib.
    • Click OK and rebuild your project.

    If any part of my explanation helped address your question, I would greatly appreciate it if you could follow the instructions here. This can also help other community members facing similar scenarios.

    Was this answer helpful?

    0 comments No comments

  2. Jay Pham (WICLOUD CORPORATION) 3,810 Reputation points Microsoft External Staff Moderator
    2026-07-16T00:52:07.64+00:00

    Hi @Sid Kraft ,

    We are currently investigating the issue and will provide an update soon. Thank you for your patience.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.