Jump to content
  • Advertisement
Sign in to follow this  
Code Mole

Weird d3dx9 linking errors when compiling

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

Got a new computer and when I went to get the directX sdk there was a new update out and when I downloaded that, some of the functions for sprites changed so I fixed all my code and now when I compile I get linking errors. I don't know all that much about it and I've never seen linking errors like these before. oh the compiler I have is old, I'm using Visual C++ 6.0 here they are: Linking... d3dx9.lib(cshaderprogram.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(cpslegacyprogram.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(cpsprogram.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(cvsprogram.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(cfxlprogram.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(cbaseprogram.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(cprogram.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(cparse.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(c30program.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(jdhuff.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(jchuff.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(jcdctmgr.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(trees.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(ctokenize.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(cassembler.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(ccompiler.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(jdcoefct.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(d3dxmathx3d.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(pngwutil.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(pngrutil.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(cpreprocessor.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(jerror.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(pngerror.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(d3dx9shader.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(ssefasttable.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(cpudetect.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(cfont.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(cline.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(jdmarker.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(d3dx9core.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(cimage.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(ccodec.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(cfile.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(cshaderprogram.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(cpslegacyprogram.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(cpsprogram.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(cvsprogram.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(cfxlprogram.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(cbaseprogram.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(cprogram.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(cparse.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(c30program.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(jdhuff.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(jchuff.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(jcdctmgr.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(trees.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(ctokenize.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(cassembler.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(ccompiler.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(jdcoefct.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(d3dxmathx3d.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(pngwutil.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(pngrutil.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(cpreprocessor.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(jerror.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(pngerror.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(d3dx9shader.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(ssefasttable.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(cpudetect.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(cfont.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(cline.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(jdmarker.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(d3dx9core.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(cimage.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(ccodec.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(cfile.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 Debug/CrazyRevolution.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe. if anyone can help me out or point me to a good website or two I would be most greatful. thanks, code mole

Share this post


Link to post
Share on other sites
Advertisement
download the SDK extras from oct.2004 and then link with the new d3dx9.lib that it comes with. It fixes this problem. It is because vc6.0 is no longer supported but of course microsoft released a fix for it

Share this post


Link to post
Share on other sites
I got the above problem to work, now I'm trying to get a sample code of the directX 9 to compile and again linking errors.

here they are:

Compiling...
Textures.cpp
Linking...
Textures.obj : error LNK2001: unresolved external symbol _D3DXCreateTextureFromFileA@12
Textures.obj : error LNK2001: unresolved external symbol _D3DXMatrixPerspectiveFovLH@20
Textures.obj : error LNK2001: unresolved external symbol _D3DXMatrixLookAtLH@16
Textures.obj : error LNK2001: unresolved external symbol _D3DXMatrixRotationX@8
Textures.obj : error LNK2001: unresolved external symbol __imp__timeGetTime@0
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Textures.exe : fatal error LNK1120: 6 unresolved externals
Error executing link.exe.

I looked up the documentation on the first error and it states that the funciton D3DXCreateTextureFromFile uses the d3d9.lib, well that was one of the .libs that got replaced for my compiler (visual C++ 6.0) to work with d3d9. So does this mean these sample codes will not compile on my compiler since they are designed to work with a more recent compiler? can anyone help me fix this problem? Maybe I'm wrong to assume that the .lib file is the problem, I'm really not sure.

Code Mole

Share this post


Link to post
Share on other sites
thanks VolkerG,

including those .libs now has me down to just the WinMain link error.

LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Textures.exe : fatal error LNK1120: 6 unresolved externals


Volker, what documentation did you look through to find out what .libs to include?

any idea on what .lib I need to fix the main link error?

code mole

Share this post


Link to post
Share on other sites
NM,

sorry I just thought of what i did wrong, i didn't make a WinApp projected, it defaults to console, thus it didn't know what winmain() was. ok so I got everything fix and i can run the samples now.

thanks everyone!

code mole

Share this post


Link to post
Share on other sites
Sign in to follow this  

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