Jump to content
  • Advertisement
Sign in to follow this  
Blackmore

Error LNK2028 when trying to complie DX stuff

This topic is 4435 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'm a newbie to direct x, and just got the DX SDK. Trying to complie the SDK'S samples and the book's ones the complier returns a lot of errors that look like this:
3DIntro.obj : error LNK2028: unresolved token (0A00005D) "extern "C" unsigned short __stdcall RegisterClassExA(struct tagWNDCLASSEXA const *)" (?RegisterClassExA@@$$J14YGGPBUtagWNDCLASSEXA@@@Z) referenced in function "extern "C" int __stdcall WinMain(struct HINSTANCE__ *,struct HINSTANCE__ *,char *,int)" (?WinMain@@$$J216YGHPAUHINSTANCE__@@0PADH@Z)
How can i fix this stuff?

Share this post


Link to post
Share on other sites
Advertisement
RegisterClassEx() is a regular Win32 call - nothing directly related to DirectX.

At a guess you've not got the Platform SDK configured or installed. But without any details on which versions of the SDK's (both DX and Platform) or the IDE/Compiler name (you're not using Visual C++ 6 are you? [grin]) it's difficult to say any more.

As a side note about your book's sample code - make sure you use the SDK that came with the book. Books move slower than the DX SDK's - we get a lot of threads (although I dont think yours is) where people download the latest SDK and find it explodes when compiling sample code from a book...

hth
Jack

Share this post


Link to post
Share on other sites
The complier is VC++ 2005 Express
Platform i've downloaded yesterday.. Latest version
The SDK is April 2006
DX samples don't work either.. Same errors

Share this post


Link to post
Share on other sites
Did you configure MS VS 2005 Express to use with the Platform SDK?

Not sure but that might help you with your problem. You can find a tutorial here

regards
thallish

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!