[DX10] Newbie Help

I am following Frank D. Luna's book in DirectX 10 but I have a problem compiling this very simple program.


int main()
D3DXVECTOR3 u(1.0f, 2.0f, 3.0f);

return 0;

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 [email protected] 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?
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!