Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Sasha

Unresolved External Symbol

This topic is 5378 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 beginer in DirectX and I''m making some simple application. When I compile app. it gives me error : "Unresolved External Symbol ... " and it is someting with Direct3DCreate9(...), or DirectSoundCreate(...) . What''s wrong?

Share this post


Link to post
Share on other sites
Advertisement
Make sure to link the libraries. I not sure, but I think it''s "d3d9.lib" for Direct3D and "dsound9.lib" for DirectSound. If you use VisualC++, go to Project-->Settings--Linker and enter the library names.

Hope that helps!
Drag0n

-----------------------------
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning..." -- Rich Cook

My future web presence: Dave''s Programming Resources

Share this post


Link to post
Share on other sites
Or if you''re using VC++, you could also write:


#pragma comment( lib, "d3d9.lib" )
#pragma comment( lib, "dsound9.lib" )


and it would accomplish the same thing as putting these libraries in the project settings dialog box, but I prefer this method, as I can copy the code to a new project and don''t have to worry about libraries and such.

Chris Pergrossi
My Realm | "Good Morning, Dave"

Share this post


Link to post
Share on other sites
yah dude, REMEMBER wut they said, i spent all yesterday working on the same exact problem, and it was not the first time id had it, trust me u will forget, write it down somewhere

Share this post


Link to post
Share on other sites
i know nothing about the pragma stuff, i know theres a lot of preprocessor stuff, i dont wanna search msdn, u know where i can find out about the rest of it? link plz :-D

Share this post


Link to post
Share on other sites

  • 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!