Sign in to follow this  
gfreak5

Unresolved external symbol

Recommended Posts

I just got Microsoft Visual C++ 6.0, but as soon as i tried to build a directX 9 program i got the error "unresolved external symbol _Direct3DCreate9@4" I linked both d3d9.h and d3dx9.h, and have added the folder to the directories in the program. If someone could help me with this or point me to a thread that actually explains this, id be very obliged. Thank you.

Share this post


Link to post
Share on other sites
You might also link knowing that you can link in the source file itself, vs. hidden off in the project files by using:
#pragma comment( lib, "d3dx9.lib" )

just stash that up near your includes for good measure. No semi-colin, as with all compiler directives.

Share this post


Link to post
Share on other sites
Thanks guys, that really helped. I meant that included them in my first post, sorry about that. I went and linked everything, but then it said that i have an "invalid machine type" and cant open the library. What is that? Sorry about asking so many questions, but im just getting into DirectX, thank you again for all help.

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