dimanche 2 octobre 2016

LNK2019 when using String in my OpenGL32 project

I'm new here and this is my first post as i urgently requires help for this particular problem.

I been working on my OpenGL 32 project which was working fine. However, when i just want to include std::string

#include <string>
std::string test;

and it appears these linker errors appear:

Error LNK2019 unresolved external symbol __imp__invalid_parameter referenced in function "void * __cdecl std::_Allocate(unsigned __int64,unsigned __int64,bool)" (?_Allocate@std@@YAPEAX_K0_N@Z) Graphics_Demo C:\Users\Owner\Desktop\Graphics_Demo\Graphics_Demo.obj 1
Error LNK2019 unresolved external symbol __imp__CrtDbgReportW referenced in function "void * __cdecl std::_Allocate(unsigned __int64,unsigned __int64,bool)" (?_Allocate@std@@YAPEAX_K0_N@Z) Graphics_Demo C:\Users\Owner\Desktop\Graphics_Demo\Graphics_Demo.obj 1
Warning LNK4098 defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library Graphics_Demo C:\Users\Owner\Desktop\Graphics_Demo\LINK 1
Warning LNK4272 library machine type 'X86' conflicts with target machine type 'x64' Graphics_Demo C:\Users\Owner\Desktop\Graphics_Demo\Externals\glew-1.13.0\lib\Release\Win32\glew32.lib 1
Warning LNK4272 library machine type 'X86' conflicts with target machine type 'x64' Graphics_Demo C:\Users\Owner\Desktop\Graphics_Demo\Externals\glut\lib\glut32.lib 1

Anyone, please?

Aucun commentaire:

Enregistrer un commentaire