Weird Bug

Started by
4 comments, last by spacekid434 12 years, 8 months ago
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
Advertisement
Look at the first error in the list and fix that first. Often one error cause many other errors.
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.
The thing is, there are no errors with my code, its just with xnamath.h
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

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

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

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

Sprite Creator 3 VX & XP

WARNING: I edit my posts constantly.

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" http://www.amazon.com/Beginning-DirectX-11-Game-Programming/dp/1435458958/ref=sr_1_1?ie=UTF8&qid=1313152390&sr=8-1 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.

This topic is closed to new replies.

Advertisement