Results 1 to 2 of 2

Thread: Can't link glew in Visual Studio 2013, Windows 8.1

  1. #1
    Newbie Newbie
    Join Date
    Jul 2015

    Can't link glew in Visual Studio 2013, Windows 8.1


    I can't link static libraries in my visual studio 2013 c++ project.

    I downloaded latest glew-1.11.0-win32 and glfw-3.1.1.bin.WIN32

    Set path to include directory (project Properties > C/C++ "Additional Include Directories")


    Add path to lib files (project Properties > Linker > General "Additional Library Directories")


    Add library names (project Properties > Linker > Input "Additional Dependencies")

    glew32.lib (also tried glew32s.lib)

    Define preprocesor GLEW_STATIC (it's visible when I remove this)

    (project Properties > C/C++ > Preprocessor "Preprocessor Definitions")

    When I build my project following error occur(can't write at symbol so I put [at]:

    Error 1 error LNK2019: unresolved external symbol _glewInit[at]0 referenced in function _main main.obj
    Error 2 error LNK2001: unresolved external symbol _glewExperimental main.obj
    Error 3 error LNK1120: 2 unresolved externals OpenGL.exe

    When I want to comple this

    Code :
    GLFWwindow * window;
    using namespace std; 
    int main()
        glewExperimental = TRUE;
        GLenum error = glewInit();
        if (error != GLEW_OK)
            cout << "Error!" << endl;
        return 0;

    Windows 8.1 on virutal machine(VirtualBox) and Mirosoft Visual Studio 2013

    What I am doing wrong? In other topics on this forum this solution works properly.

    When I remove this two libs from directories I got same error, so probably Visual don't see these two libs. But path is set properly. Include path works, all header files are visible by intelsense.

  2. #2
    Junior Member Newbie
    Join Date
    May 2015
    Well, you don't tell us what the exact error is, so there is no way to help. if you have a mismatch between how the library is built and how the application is built you will get problems though. I would just remake the glew as mt dynamic and do the project that way was well, don't try to bother with the static because visual studio makes this a ridiculous pain.

Similar Threads

  1. Visual studio 2013
    By strongnas in forum OpenGL: Windows
    Replies: 1
    Last Post: 06-08-2015, 04:18 AM
  2. Updating a Project From V.C 6.0 to Visual Studio 2013
    By pablolp in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 03-02-2015, 09:28 AM
  3. Visual studio 2013 + opengl setup
    By KSM888 in forum OpenGL: Windows
    Replies: 0
    Last Post: 05-16-2014, 10:34 AM
  4. Replies: 1
    Last Post: 05-05-2014, 01:32 PM
  5. GLEW in Visual Studio 2010 C++
    By fiodis in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 08-29-2012, 05:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean