Friday, 19 May 2017

c++ - Error when trying to include GLEW and SDL_opengl

I am going through a tutorial for some kinect code and I cant seem to get the includes to work. When I include the code below I get the error:



Error 1 error C2371: 'PFNGLFRAGMENTLIGHTFVSGIXPROC' : redefinition; different basic types



#include 
#include
#include
#include
#include


I have been told to use #define NO_SDL_GLEXT but when I include that I get 16 new errors.



#define NO_SDL_GLEXT
#include
#include
#include
#include
#include



  • Error 8 error LNK2019: unresolved external symbol __imp__glClear@4 referenced in function "void __cdecl drawKinectData(void)" (?drawKinectData@@YAXXZ)


  • Error 9 error LNK2019: unresolved external symbol __imp__glClearColor@16 referenced in function _SDL_main


  • Error 10 error LNK2019: unresolved external symbol __imp__glClearDepth@8 referenced in function _SDL_main


  • Error 23 error LNK1120: 15 unresolved externals



Is there any way I can get some help on this? If I haven't provided enough information or you need more clarity let me know. Thanks! :)



Edit 1: I was told that this is a duplicate and shown a document talking about how to include libraries into the project. I do not believe or understand if that is the issue because I have already configured the project in visual studios as shown in these links:



http://imgur.com/9OGHj2e



http://imgur.com/MNPAR3k

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...