Archived

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

Unresolved External Symbol

This topic is 5125 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
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