The problem of transferring the project to Visual Studio 2012

I just switched to Visual Studio 2012 RC to give it a test run. But I'm having problems getting my DirectX 11 game project to work with it. When I create, I get 1152 warnings that look like this:

1>e:\program files (x86)\microsoft directx sdk (june 2010)\include\dwrite.h(4972): warning C4005: 'DWRITE_E_NOFONT' : macro redefinition 1> c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(50217) : see previous definition of 'DWRITE_E_NOFONT' 

They come from all DirectX headers, and each one is for a different macro. I also get some unresolved external characters that I did not do before:

 1>base.obj : error LNK2019: unresolved external symbol "void __cdecl operator delete(void *,int,char const *,int)" ( ??3@YAXPAXHPBDH @Z) referenced in function __unwindfunclet$??__EgGame@ @YAXXZ$0 1>game.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *,int,char const *,int)" ( ??3@YAXPAXHPBDH @Z) 1>world.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *,int,char const *,int)" ( ??3@YAXPAXHPBDH @Z) 

The only place I would think delete would be overloaded is in #include <crtdbg.h> , which I use in my project. But the fact is that all this works in Visual Studio 2010.

Not sure what the problem is. Are any steps removed when converting projects?

I should also mention that my computer crashed earlier (I just lost Windows and the registry), so I had to reinstall most of my programs. I do not know if this will come to the game, but I have not compiled the project on VS2010 since the moment of failure.

+4
source share
1 answer

You need to recompile all your libraries with VS2012 to fix this problem. This is a problem with the new runtime library included in VS2012.

+3
source

All Articles