[DX10] Newbie Help - Programmers Heaven

Howdy, Stranger!

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


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

[DX10] Newbie Help

zee_ola05zee_ola05 Posts: 1Member
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 _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?
Sign In or Register to comment.