Sign in to follow this  

Failed linker to d3dx9

This topic is 3489 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 got a failed linker weird tho the directory is linked to Dxsdk/lib where d3dx9 is, I'm linked through DXSDK in visual studio and the project file itselfmaybe I did something wrong? PlatformSDK was not needed Im using the DirectX 9 SDK, with Visual Studio Express Edition 2008: this is my problem Linking... LINK : fatal error LNK1104: cannot open file 'd3dx9.lib' Build log was saved at "file://c:\Documents and Settings\Main\My Documents\Visual Studio 2008\Projects\FUCK\DX\Debug\BuildLog.htm" DX - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== --------------------------------------------------------------------- Here is how I linked to visual studio 2008 tools->options->VC++ Directories->added: dxsdk\include added: dxsdk\lib heres how I linked to my project file DX Project->DXProperties->ConfigurationProperties->C\C++->general->additional include directories->added: dxsdk\include added: dxsdk\lib -------------------------------------------------------------------- this are the include packages #include <windows.h> //#include <windowsx.h> #include <d3d9.h> #include <d3dx9.h> ------------------------------ Heres the lib includes #pragma comment (lib, "d3d9.lib") #pragma comment (lib, "d3dx9.lib") -------------------------------------- I looked through every possible way, maybe im using the wrong studio with dx 9 or something, please help me

Share this post


Link to post
Share on other sites
Hi there you don't need to use pragma comments to load librarys in vc++ express 2008. Under the project setting in the linker tab the last option is somethign around like a cmd or something needless to say you click on it and on the right side of the screen theres a large text edit control just put them lib file is there that you need.

As for the error you are getting it says it can not find the lib file requested to use or can not open it so check the directory and make sure you have that file on hand.

Regards Jouei.

Too admins r orignator o fpost you have four post of the same thing please remove and try and limit double posting in the future thank you.

Share this post


Link to post
Share on other sites
Yea When I posted the reply I saw the four threads, but i didn't know how to delete them, sorry about that, if you could tell me I would right away.

As for the linking I try that and I'll comment out the pragmas, I'll come back with the result thx.

Share this post


Link to post
Share on other sites

This topic is 3489 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.

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