I am following Frank D. Luna's book in DirectX 10 but I have a problem compiling this very simple program.
D3DXVECTOR3 u(1.0f, 2.0f, 3.0f);
I am using MS Visual C++ 2010. I tried this program to see if my configuration on MSVC++2010 is ok. But I get these errors:
1>------ Build started: Project: DX10, Configuration: Debug Win32 ------
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
1>c:usersjohnnydocumentsvisual studio 2010ProjectsDX10DebugDX10.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I am using Windows 7 Professional 64bit. I have already installed the latest DX SDK (June).
at my project's [b]properties->Configuration Properties->VC++ Directories[/b]
I set Include and Library Directories to..
[b]Include Directories: C:Program Files %28x86%29Microsoft DirectX SDK %28June 2010%29Include;$(IncludePath)[/b]
[b]Library Directories: C:Program Files %28x86%29Microsoft DirectX SDK %28June 2010%29Libx64;$(LibraryPath)[/b]
What am I missing?
PS: What is the difference between
Microsoft DirectX SDK (June 2010)Libx64 AND
Microsoft DirectX SDK (June 2010)Libx86?