Sign in to follow this  
spacekid434

Weird Bug

Recommended Posts

Hey all.

I'm learning DX11 from a book and I am learning about sprites. I'm using xnamath for it and when I compile it gives me over 100 error messages about bad syntax and incorrect use of ';' and ':'.

I'm using Visual Studio Professional 2010..

Any help would be greatly appreciated.

Thanks

Share this post


Link to post
Share on other sites
Look at the first error in the list and fix that first. Often one error cause many other errors.

Share this post


Link to post
Share on other sites
Are you a fluent C++ programmer yet? These sound like syntax errors. Before you dive into graphics programming, you should be comfortable with the language you are using.

Share this post


Link to post
Share on other sites
Have you tried to compile a basic template, as in smallest possible program that will compile. Usually a hello world type program with that library?

You may need to get that library again if there are errors directly with the library files, or fix the library manually if that really is the problem. Or even get someone elses xnamath.h header file and see if you still get the same problem.

Not sure if this is the file, but here is what I found on xnamath.h

[url]http://lunaproject.googlecode.com/svn/trunk/dxsdk/Include/xnamath.h[/url]

and another not sure which is more recent
[url]http://www.assembla.com/code/deferred_o3/subversion/nodes/dependencies/DirectX/Include/xnamath.h?rev=2[/url]

is a google code for xnamath.h hope this helps you.

Share this post


Link to post
Share on other sites
Im not quite sure what I did, but after remaking the project from scratch and learning from the source from the book, not the actual stuff in the book, i got it to work.

I must say though, I do not recommend "Beginning DirectX 11 game programming" [url="http://www.amazon.com/Beginning-DirectX-11-Game-Programming/dp/1435458958/ref=sr_1_1?ie=UTF8&qid=1313152390&sr=8-1"]http://www.amazon.com/Beginning-DirectX-11-Game-Programming/dp/1435458958/ref=sr_1_1?ie=UTF8&qid=1313152390&sr=8-1[/url] as a book to learn from. The articles don't flow well and the source in the book is different from what is used in the code they provide to download. Its poorly written, but in all fairness, it is the first edition.

Thanks anyway.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this