Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualSM ForeveR

Posted 11 October 2012 - 01:43 PM

Hi,
I have this strange problem, which I've ignored for quite some time...
I develop in debug mode, which works fine. But whenever I switch to release mode the following part of my code
[source lang="cpp"] GLenum err = glewInit(); if (err != GLEW_OK) LOGI("GLEW not initialized."); if (!GLEW_VERSION_2_1) LOGI("GLEW doesn't support OpenGL 2.1");[/source]
produces this message:
INFO: GLEW doesn't support OpenGL 2.1

I have this line in my header (glew.h is between <>):
[source lang="cpp"]#include glew.h#pragma comment(lib, "glew32.lib")[/source]
I include these directories:

C:\api\FMOD Programmers API Windows\api\inc;

C:\Program Files (x86)\FMOD SoundSystem\FMOD Programmers API Windows\api\inc;

C:\Binaries\DevIL-SDK-x86-1.7.8\include\IL;

C:\api\Glew\include\GL;

C:\api\DevIL\include\IL;$(IncludePath)

and these libraries:

C:\api\Glew\lib;

C:\api\DevIL\lib;

C:\api\FMOD Programmers API Windows\api\lib;

C:\Program Files (x86)\FMOD SoundSystem\FMOD Programmers API Windows\api\lib;

C:\Binaries\DevIL-SDK-x86-1.7.8\lib;$(LibraryPath)


I've had copied debug include and library entries to release mode, so they should be the same.

Any ideas, why in release mode glew doesn't add support for OpenGL2.1?
Thanks, Martin.

#3SM ForeveR

Posted 11 October 2012 - 01:43 PM

Hi,
I have this strange problem, which I've ignored for quite some time...
I develop in debug mode, which works fine. But whenever I switch to release mode the following part of my code
[source lang="cpp"] GLenum err = glewInit(); if (err != GLEW_OK) LOGI("GLEW not initialized."); if (!GLEW_VERSION_2_1) LOGI("GLEW doesn't support OpenGL 2.1");[/source]
produces this message:
INFO: GLEW doesn't support OpenGL 2.1

I have this line in my header:
[source lang="cpp"]#include '<'glew.h'>'#pragma comment(lib, "glew32.lib")[/source]
I include these directories:

C:\api\FMOD Programmers API Windows\api\inc;

C:\Program Files (x86)\FMOD SoundSystem\FMOD Programmers API Windows\api\inc;

C:\Binaries\DevIL-SDK-x86-1.7.8\include\IL;

C:\api\Glew\include\GL;

C:\api\DevIL\include\IL;$(IncludePath)

and these libraries:

C:\api\Glew\lib;

C:\api\DevIL\lib;

C:\api\FMOD Programmers API Windows\api\lib;

C:\Program Files (x86)\FMOD SoundSystem\FMOD Programmers API Windows\api\lib;

C:\Binaries\DevIL-SDK-x86-1.7.8\lib;$(LibraryPath)


I've had copied debug include and library entries to release mode, so they should be the same.

Any ideas, why in release mode glew doesn't add support for OpenGL2.1?
Thanks, Martin.

#2SM ForeveR

Posted 11 October 2012 - 01:42 PM

Hi,
I have this strange problem, which I've ignored for quite some time...
I develop in debug mode, which works fine. But whenever I switch to release mode the following part of my code
[source lang="cpp"] GLenum err = glewInit(); if (err != GLEW_OK) LOGI("GLEW not initialized."); if (!GLEW_VERSION_2_1) LOGI("GLEW doesn't support OpenGL 2.1");[/source]
produces this message:
INFO: GLEW doesn't support OpenGL 2.1

I have this line in my header:
[source lang="cpp"]#include <<glew.h>#pragma comment(lib, "glew32.lib")[/source]
I include these directories:

C:\api\FMOD Programmers API Windows\api\inc;

C:\Program Files (x86)\FMOD SoundSystem\FMOD Programmers API Windows\api\inc;

C:\Binaries\DevIL-SDK-x86-1.7.8\include\IL;

C:\api\Glew\include\GL;

C:\api\DevIL\include\IL;$(IncludePath)

and these libraries:

C:\api\Glew\lib;

C:\api\DevIL\lib;

C:\api\FMOD Programmers API Windows\api\lib;

C:\Program Files (x86)\FMOD SoundSystem\FMOD Programmers API Windows\api\lib;

C:\Binaries\DevIL-SDK-x86-1.7.8\lib;$(LibraryPath)


I've had copied debug include and library entries to release mode, so they should be the same.

Any ideas, why in release mode glew doesn't add support for OpenGL2.1?
Thanks, Martin.

#1SM ForeveR

Posted 11 October 2012 - 01:41 PM

Hi,
I have this strange problem, which I've ignored for quite some time...
I develop in debug mode, which works fine. But whenever I switch to release mode the following part of my code
[source lang="cpp"] GLenum err = glewInit(); if (err != GLEW_OK) LOGI("GLEW not initialized."); if (!GLEW_VERSION_2_1) LOGI("GLEW doesn't support OpenGL 2.1");[/source]
produces this message:
INFO: GLEW doesn't support OpenGL 2.1

I have this line in my header:
[source lang="cpp"]#include <glew.h>#pragma comment(lib, "glew32.lib")[/source]
I include these directories:

C:\api\FMOD Programmers API Windows\api\inc;

C:\Program Files (x86)\FMOD SoundSystem\FMOD Programmers API Windows\api\inc;

C:\Binaries\DevIL-SDK-x86-1.7.8\include\IL;

C:\api\Glew\include\GL;

C:\api\DevIL\include\IL;$(IncludePath)

and these libraries:

C:\api\Glew\lib;

C:\api\DevIL\lib;

C:\api\FMOD Programmers API Windows\api\lib;

C:\Program Files (x86)\FMOD SoundSystem\FMOD Programmers API Windows\api\lib;

C:\Binaries\DevIL-SDK-x86-1.7.8\lib;$(LibraryPath)


I've had copied debug include and library entries to release mode, so they should be the same.

Any ideas, why in release mode glew doesn't add support for OpenGL2.1?
Thanks, Martin.

PARTNERS