Thread: trouble setting up GLEW in Visual C++ 2010 Express

  1. #1
    Registered User
    Join Date
    Jul 2012

    trouble setting up GLEW in Visual C++ 2010 Express

    I hope someone can help. I got FreeGLUT working w/ VC++, but I can't get GLEW to work. I put the GLEW headers into: C:\Program Files(x86)\Windows SDKs\V7.0A\Include\gl, I put the GLEW static libraries into C:\Program Files(x86)\Windows SDKs\V7.0A\Lib and glew32.dll into SystemWoW64 dir. When I try to build the source code, I get these messages:
    e.g. error LNK2001: unresolved external symbol __imp__glewBindBuffer
    error LNK2019: unresolved external symbol __imp__glewBufferData

    I found this link but I can't find the glew.dsw, there is a link to download glew. So I copied those glew/include to Windows SDKs\include\gl
    glew - OpenGL: How to compile glew32.dll from source file - Stack Overflow

  2. #2
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Do you tell it where to search for them, meaning do you include this library in the project's settings?
    Devoted my life to programming...

  3. #3
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    You need to specify the "GLEW static libraries" (the .lib or .a files) in your project settings. Simply putting the files in the right place is usually enough for header files, but library files have to be linked explicitly; then the .DLL files must be present in the current directory or \windows\system or whatever at run-time.

    See the section "Linking To Static Libraries" here: Visual Studio 2010 C++ Project Settings

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell

    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ:

    My website:
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem with debugging in Visual Express 2010
    By tombmonkey in forum C++ Programming
    Replies: 1
    Last Post: 05-03-2012, 09:40 PM
  2. Visual C++ 2010 Express - difference from 2008?
    By ulillillia in forum Tech Board
    Replies: 26
    Last Post: 08-01-2011, 09:08 PM
  3. Visual C++ 2010 Express Portable Programs
    By Bronx68 in forum C++ Programming
    Replies: 18
    Last Post: 08-01-2011, 03:54 PM
  4. C project in Microsoft Visual C++ 2010 Express?
    By alexbcg in forum C Programming
    Replies: 2
    Last Post: 12-08-2010, 02:39 PM
  5. Visual C++ 2010 express problems
    By dnj23 in forum Windows Programming
    Replies: 6
    Last Post: 08-10-2010, 06:16 AM