Skip to main content
gamedev.net
🔒 Locked

DANG THESE EXTERNAL LINK ERRORS

Started by Scotto1001 Sep 7, 2005 at 3:55 PM 7 replies 600+ views
Original Post
Scotto1001
Scotto1001
>.< I know to fix these i need to put a .lib in the project link line in Microsoft Visual Studio but what .lib file am i missing ive got d3d9.lib but im still getting 5 link errors

-------------------Configuration: D3dengine - Win32 Debug--------------------
Linking...
Camera.obj : error LNK2001: unresolved external symbol _D3DXMatrixLookAtLH@16
Mesh.obj : error LNK2001: unresolved external symbol _D3DXCreateTextureFromFileA@12
Mesh.obj : error LNK2001: unresolved external symbol _D3DXLoadMeshFromXA@32
Projection.obj : error LNK2001: unresolved external symbol _D3DXMatrixPerspectiveFovLH@20
Debug/D3dengine.exe : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.

D3dengine.exe - 5 error(s), 0 warning(s)
-Scotto
Ra
Ra
Try linking in d3dx9.lib.
Ra
Scotto1001
Scotto1001
>.> well it got rid of the 5 but it gave me 87 that look like this......

--------------------Configuration: D3dengine - Win32 Debug--------------------
Linking...
d3dx9.lib(cvsprogram.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(cfxlprogram.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(cshaderprogram.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(cpslegacyprogram.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(cpsprogram.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(cbaseprogram.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(cprogram.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(cline.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(jdcoefct.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(ccompiler.obj) : error LNK2001: unresolved external symbol ___security_cookie

AND ON AND ON AND ON AND ON.............Well u get the picture
-Scotto
Ra
Ra
The same problem was addressed in this thread.

Quote:
Original post by SnakeHunta
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
Ra
Sneftel
Sneftel
Recent versions of DX don't support Visual C++ 6.0. I think that there are workarounds, though..... perhaps someone else can chime in about that.

EDIT: Dude, beaten to the punch by four seconds. That was totally Ra.
Scotto1001
Scotto1001
thx =) ill try it and yah i have an old version of Visual Studio lol its a handme down from my dad
-Scotto
Scotto1001
Scotto1001
Great ive got the extras folder and there is nothing telling me where to put it any suggestions?
-Scotto
Ximmer
Ximmer
try adding a global to your project called ___security_cookie

DWORD ___security_cookie = 0;

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.