Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: bala_48225 on October 28, 2010, 10:33:50 pm

Title: linker error: "cannot find -ld3dx9"
Post by: bala_48225 on October 28, 2010, 10:33:50 pm
Hello, I am:  WindowsXP SP3, Codeblocks 10.05 w/mingW.

I'm trying to link this DirectX project and I keep receiving the linker error "cannot find -ld3dx9", despite having the DX setup properly in regards to where the SDK is, and even having "kept the relative path", and I can SEE the file in the directory, too.  I also put in the search directories manually, to look in that directory as well and same result.  What gives?  Btw I also tried taking it out of the release and debug that it is in naturally and putting it at the bottom of the regular "project" library list and same result also.  Any and all suggestions welcome. -B

addendum:  one of the files included in the project is 2Dtestdx9.rc and is a "Microsoft Visual C++ generated resource script"; that doesn't seem to me to be related to the linker, but I thought that represented full disclosure so I added that in just now.
Title: Re: linker error: "cannot find -ld3dx9"
Post by: oBFusCATed on October 28, 2010, 10:47:14 pm
Read this: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

And then this: http://lmgtfy.com/?q=mingw+directx

And this is not C::B related but mingw+directx problem....
Title: Re: linker error: "cannot find -ld3dx9"
Post by: bala_48225 on October 28, 2010, 11:06:56 pm
thanks for the lightning reply, obfuscated, I'll check those out.  Off topic, "advanced newcomer" I am, but humble I aim to remain.