Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualSM ForeveR

Posted 12 October 2012 - 05:55 AM

Thanks for reply. So I tried a few options.
1.) I replaced my include code to this one (instead of "GL/glew.h" I use<GL/glew.h>, this markup script has some issues.):

[source lang="cpp"]#define GLEW_STATIC#include "GL/glew.h"#pragma comment(lib, "glew32s.lib")[/source]

This is what error I get now:

Error 3 error LNK1169: one or more multiply defined symbols found D:\Dropbox\Workspace\Visual Studio\GhostEngine\Release\GhostEngine.exe 1 1 GhostEngine
Error 2 error LNK2005: _glewInit@0 already defined in glew32.lib(glew32.dll) D:\Dropbox\Workspace\Visual Studio\GhostEngine\glew32s.lib(glew.obj) GhostEngine
Warning 1 warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library D:\Dropbox\Workspace\Visual Studio\GhostEngine\LINK GhostEngine


2) I downloaded latest glew binaries and changed my glew32.dll found in system and system32 folders with new one.
Unfortunately it didn't helped.
3) I tried including source files into my project, but it also spilled loads of error messages about missing functions or something.

I have latest nvidia drivers for 670GTX. Can this be the cause?
I also don't include following lines

#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "glu32.lib")

because they don't seem to do anything.

#3SM ForeveR

Posted 12 October 2012 - 05:54 AM

Thanks for reply. So I tried a few options.
1.) I replaced my include code to this one (instead of "GL/glew.h" I use<GL/glew.h>, this markup script has some issues.):
[source lang="cpp"]#define GLEW_STATIC#include "GL/glew.h"#pragma comment(lib, "glew32s.lib")[/source]
This is what error I get now:

Error 3 error LNK1169: one or more multiply defined symbols found D:\Dropbox\Workspace\Visual Studio\GhostEngine\Release\GhostEngine.exe 1 1 GhostEngine
Error 2 error LNK2005: _glewInit@0 already defined in glew32.lib(glew32.dll) D:\Dropbox\Workspace\Visual Studio\GhostEngine\glew32s.lib(glew.obj) GhostEngine
Warning 1 warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library D:\Dropbox\Workspace\Visual Studio\GhostEngine\LINK GhostEngine


2) I downloaded latest glew binaries and changed my glew32.dll found in system and system32 folders with new one.
Unfortunately it didn't helped.
3) I tried including source files into my project, but it also spilled loads of error messages about missing functions or something.

I have latest nvidia drivers for 670GTX. Can this be the cause?
I also don't include following lines

#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "glu32.lib")

because they don't seem to do anything.

#2SM ForeveR

Posted 12 October 2012 - 05:54 AM

Thanks for reply. So I tried a few options.
1.) I replaced my include code to this one (instead of '"' I use '<' and '>', this markup script has some issues.):
[source lang="cpp"]#define GLEW_STATIC#include "GL/glew.h"#pragma comment(lib, "glew32s.lib")[/source]
This is what error I get now:

Error 3 error LNK1169: one or more multiply defined symbols found D:\Dropbox\Workspace\Visual Studio\GhostEngine\Release\GhostEngine.exe 1 1 GhostEngine
Error 2 error LNK2005: _glewInit@0 already defined in glew32.lib(glew32.dll) D:\Dropbox\Workspace\Visual Studio\GhostEngine\glew32s.lib(glew.obj) GhostEngine
Warning 1 warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library D:\Dropbox\Workspace\Visual Studio\GhostEngine\LINK GhostEngine


2) I downloaded latest glew binaries and changed my glew32.dll found in system and system32 folders with new one.
Unfortunately it didn't helped.
3) I tried including source files into my project, but it also spilled loads of error messages about missing functions or something.

I have latest nvidia drivers for 670GTX. Can this be the cause?
I also don't include following lines

#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "glu32.lib")

because they don't seem to do anything.

#1SM ForeveR

Posted 12 October 2012 - 05:51 AM

Thanks for reply. So I tried a few options.
1.) I replaced my include code to this one:
[source lang="cpp"]#define GLEW_STATIC#include <GL/glew.h>#pragma comment(lib, "glew32s.lib")[/source]
This is what error I get now:

Error 3 error LNK1169: one or more multiply defined symbols found D:\Dropbox\Workspace\Visual Studio\GhostEngine\Release\GhostEngine.exe 1 1 GhostEngine
Error 2 error LNK2005: _glewInit@0 already defined in glew32.lib(glew32.dll) D:\Dropbox\Workspace\Visual Studio\GhostEngine\glew32s.lib(glew.obj) GhostEngine
Warning 1 warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library D:\Dropbox\Workspace\Visual Studio\GhostEngine\LINK GhostEngine


2) I downloaded latest glew binaries and changed my glew32.dll found in system and system32 folders with new one.
Unfortunately it didn't helped.
3) I tried including source files into my project, but it also spilled loads of error messages about missing functions or something.

I have latest nvidia drivers for 670GTX. Can this be the cause?
I also don't include following lines

#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "glu32.lib")

because they don't seem to do anything.

PARTNERS