Hello everybody, first of all i would like to express my appreciation for the great book you guys made, i am just getting started with it but i love your writing style and the goofy side stories already =P
So I wanted to compile the Bookcode, but i simply can't get it to work. I am on Visual Studio 2013, i have manually downloaded the June 2010 DirectX SDK and i have already solved some issues myself, like recompiling some of the libraries so that they work with VS 2013, but When i try to complie the Project I run into this Linking error which i can't get resolved for about 2 hours now =/ I have tried to recompile the Effects11.lib, but that didnt help either.
Edit:
After some more testing i found out that the gamecode4_2010.lib itself compiles and binds without problem... but when it shall be bound itself everything goes wrong... and i dont really get how that happens xD
Edit2:
It is working! well partially, now i get a heap corruption because of the bullet lib, but it is compiling and linking.
For other people that might have this issue, i am not really sure what fixed it, but it tried to recompile all 3rd party libs, and be careful with compiling the effects.lib, it is default set to "Multi-threaded Debug DLL (/MDd)" in C/C++ -> Code Generation -> Runtime Library, but it should be "Multi-threaded Debug (/MTd)", at least that got it working for me.
And on another Note, in the TeapotWars Project Options, the input directory for the effects11 header is missing from the list, that should probably be added
Off trying to find a Bullet lib version that doesnt like to eat the heap...
So I wanted to compile the Bookcode, but i simply can't get it to work. I am on Visual Studio 2013, i have manually downloaded the June 2010 DirectX SDK and i have already solved some issues myself, like recompiling some of the libraries so that they work with VS 2013, but When i try to complie the Project I run into this Linking error which i can't get resolved for about 2 hours now =/ I have tried to recompile the Effects11.lib, but that didnt help either.
Source Code
- Error 86 error LNK1120: 1 unresolved externals D:\Visual Studio 2013 Projects\GameCode4\Source\Lib\Win32Debug\GCC4EditorDLL_2010.dll 1 1 GCC4EditorDLL_2010
- Error 88 error LNK1120: 1 unresolved externals D:\Visual Studio 2013 Projects\GameCode4\Source\Lib\Win32Debug\TeapotWars_2010Win32Debug.exe TeapotWars_2010
- Error 57 error LNK2019: unresolved external symbol _D3DX11CreateEffectFromMemory@20 referenced in function "public: long __thiscall LineDraw_Hlsl_Shader::OnRestore(class Scene *)" (?OnRestore@LineDraw_Hlsl_Shader@@QAEJPAVScene@@@Z) D:\Visual Studio 2013 Projects\GameCode4\Source\GCC4Editor\Msvc\gamecode4_2010.lib(Shaders.obj) GCC4EditorDLL_2010
- Error 87 error LNK2019: unresolved external symbol _D3DX11CreateEffectFromMemory@20 referenced in function "public: long __thiscall LineDraw_Hlsl_Shader::OnRestore(class Scene *)" (?OnRestore@LineDraw_Hlsl_Shader@@QAEJPAVScene@@@Z) D:\Visual Studio 2013 Projects\GameCode4\Source\TeapotWars\Msvc\gamecode4_2010.lib(Shaders.obj) TeapotWars_2010
Edit:
After some more testing i found out that the gamecode4_2010.lib itself compiles and binds without problem... but when it shall be bound itself everything goes wrong... and i dont really get how that happens xD
Edit2:
It is working! well partially, now i get a heap corruption because of the bullet lib, but it is compiling and linking.
For other people that might have this issue, i am not really sure what fixed it, but it tried to recompile all 3rd party libs, and be careful with compiling the effects.lib, it is default set to "Multi-threaded Debug DLL (/MDd)" in C/C++ -> Code Generation -> Runtime Library, but it should be "Multi-threaded Debug (/MTd)", at least that got it working for me.
And on another Note, in the TeapotWars Project Options, the input directory for the effects11 header is missing from the list, that should probably be added
Off trying to find a Bullet lib version that doesnt like to eat the heap...
The post was edited 3 times, last by EloProf ().