• Advertisement
Sign in to follow this  

[DX10] Newbie Help

This topic is 2518 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

#include <D3DX10.h>

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> Main.cpp
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
1>c:\users\johnny\documents\visual studio 2010\Projects\DX10\Debug\DX10.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 properties->Configuration Properties->VC++ Directories
I set Include and Library Directories to..
Include Directories: C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Include;$(IncludePath)
Library Directories: C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Lib\x64;$(LibraryPath)

What am I missing?


PS: What is the difference between
Microsoft DirectX SDK (June 2010)\Lib\x64 AND
Microsoft DirectX SDK (June 2010)\Lib\x86?
Should I use the x86 if I'm running on 32bit and x64 on 64bit?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement