Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3307356
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:23:49+00:00 2026-05-17T21:23:49+00:00

I am trying to use geometry shaders in my OpenGL application that is currently

  • 0

I am trying to use geometry shaders in my OpenGL application that is currently using Freeglut, and I am trying to use GLEW to do that because as I understand it, the geometry shader functionality is in an extension. My include order is as follows:

   #define GLEW_STATIC
   #include <glew.h>
   #include "freeglut.h"

However when I do this I get lots of linker errors like the following:

   error LNK2001: unresolved external symbol ___glewAttachShader

I do not receive any errors when I only use the basic OpenGL functionality (that it, things that are not in the extensions) so I know that the compiler is finding all the “basic” libraries like glu32 etc. I am using Visual Studio 2008. Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T21:23:49+00:00Added an answer on May 17, 2026 at 9:23 pm

    It’s a linker error that says it did not find a glew entrypoint.

    Link against the glew library (you did not see the error before because you did not use any extension, I assume).

    Edit:
    Actually, this is directly related to your usage of “GLEW_STATIC”.

    From the GLEW page:

    On Windows, you also have the option of adding the supplied project file glew_static.dsp to your workspace (solution) and compile it together with your other projects. In this case you also need to change the GLEW_BUILD preprocessor constant to GLEW_STATIC when building a static library or executable, otherwise you get build errors.

    What this says is that it is your responsibility to build and include the glew source files when you use the GLEW_STATIC setup.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently learning OpenGL and got my first bunch of geometry and textures displayed.
I am trying use MySql and Entity Framework, using Connector/Net 6.1 with this as
I'm trying use make a div's background transparent using a mixture of CSS3 rgba()
I am trying to use computer to show some planar geometry plots. I donot
I have a regex that I'm trying use to validate against strings. Trying to
I am currently working on an application that periodically (every 30 secs) grabs two
I'm trying to build a WPF DrawingBrush that will draw a hatch pattern using
I am trying use the jQuery table sorter plugin for a table that is
Im trying to write an algorithm using the algorithm package, but when I use
I was trying use a set of filter functions to run the appropriate routine,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.