I have made a working connection between the DLL and a testing project in the same visual studio solution so that simple calls can be made.
Now I have both DXUT.h and stdafx.h included in the whole engine but only stdafx.h is forced to be included.
I have checked that the DirectX libs and stuff are included in Visual Studio.
Here are the link errors after solving many regular errors:
1>------ Build started: Project: GameEngine, Configuration: Release Win32 ------1>Compiling...1>stdafx.cpp1>Compiling...1>SDKmisc.cpp1>Model.cpp1>IntegerArray.cpp1>DXUTmisc.cpp1>DXUTDevice11.cpp1>DXUTcamera.cpp1>DXUT.cpp1>StringMethods.cpp1>GameEngine.cpp1>Linking...1> Creating library C:\Users\David\Documents\Visual Studio 2005\Projects\GameEngine\Release\GameEngine.lib and object C:\Users\David\Documents\Visual Studio 2005\Projects\GameEngine\Release\GameEngine.exp1>GameEngine.obj : error LNK2001: unresolved external symbol _D3DXMatrixMultiply@121>GameEngine.obj : error LNK2001: unresolved external symbol _D3DX11CompileFromFileW@441>GameEngine.obj : error LNK2001: unresolved external symbol _D3DXMatrixOrthoOffCenterLH@281>GameEngine.obj : error LNK2001: unresolved external symbol _D3DXVec3Normalize@81>GameEngine.obj : error LNK2001: unresolved external symbol _D3DXVec3Transform@121>GameEngine.obj : error LNK2001: unresolved external symbol _D3DXVec3TransformCoord@121>GameEngine.obj : error LNK2001: unresolved external symbol _D3DXMatrixTranspose@81>GameEngine.obj : error LNK2001: unresolved external symbol _D3DXMatrixScaling@161>GameEngine.obj : error LNK2001: unresolved external symbol _D3DXMatrixTranslation@161>DXUT.obj : error LNK2001: unresolved external symbol __imp__InitCommonControls@01>DXUTcamera.obj : error LNK2001: unresolved external symbol _D3DXQuaternionMultiply@121>DXUTcamera.obj : error LNK2001: unresolved external symbol _D3DXMatrixRotationQuaternion@81>DXUTcamera.obj : error LNK2001: unresolved external symbol _D3DXMatrixLookAtLH@161>DXUTcamera.obj : error LNK2001: unresolved external symbol _D3DXMatrixInverse@121>DXUTcamera.obj : error LNK2001: unresolved external symbol _D3DXMatrixPerspectiveFovLH@201>DXUTcamera.obj : error LNK2001: unresolved external symbol _D3DXMatrixRotationYawPitchRoll@161>DXUTcamera.obj : error LNK2001: unresolved external symbol _D3DXQuaternionRotationMatrix@81>DXUTcamera.obj : error LNK2001: unresolved external symbol _D3DXVec3TransformNormal@121>DXUTmisc.obj : error LNK2001: unresolved external symbol _DXTraceW@201>DXUTmisc.obj : error LNK2001: unresolved external symbol _D3DX11SaveTextureToFileW@161>SDKmisc.obj : error LNK2001: unresolved external symbol _D3DX11GetImageInfoFromFileW@161>SDKmisc.obj : error LNK2001: unresolved external symbol _D3DX11CreateTextureFromFileW@241>C:\Users\David\Documents\Visual Studio 2005\Projects\GameEngine\Release\GameEngine.dll : fatal error LNK1120: 22 unresolved externals1>Build log was saved at "file://c:\Users\David\Documents\Visual Studio 2005\Projects\GameEngine\GameEngine\Release\BuildLog.htm"1>GameEngine - 23 error(s), 0 warning(s)========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Have anyone seen that before?
Is there any good general method for solving link errors?