Sign in to follow this  
m4gnus

tons of unresolved extern symbol errors :(

Recommended Posts

Hi I'm quite new to directX(not to 3d) and i want to write a simple app that loads a x-file and displays it.(i noticed the sticky post about that)I wrote a class called XMesh and wrote 2functions, 1 for rendering and 1 for loading the x-file and i fixed all bugs i found right now but suddenly after i fixed the last error 88new errors occur :( and now i don't know how to fix them..it sounds like it has something to do with the compiler or sth like that...i just get tons of unresolved external symbol errors: --------------------Configuration: XMeshloader - Win32 Debug-------------------- Compiling... Direct3D9Tutorial001.cpp XMesh.cpp Linking... Direct3D9Tutorial001.obj : error LNK2001: unresolved external symbol _Direct3DCreate9@4 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 d3dx9.lib(fastftoa.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(nfmcomp.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(cfont.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(ctokenize.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(cassembler.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(xdata.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(ssefasttable.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(xtempl.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(xzip.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(d3dx9core.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(binaryload.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(cleanmesh.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(createmesh.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(xfile.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(cpudetect.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(jdmarker.obj) : error LNK2001: unresolved external symbol ___security_cookie d3dx9.lib(loadx.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(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(cshaderprogram.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(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(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(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(cline.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(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(ccompiler.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(fastftoa.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(nfmcomp.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(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(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(xdata.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(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(xtempl.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(xzip.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(binaryload.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(cleanmesh.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(createmesh.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(xfile.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(jdmarker.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4 d3dx9.lib(loadx.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/XMeshloader.exe : fatal error LNK1120: 3 unresolved externals Error executing link.exe. XMeshloader.exe - 88 error(s), 0 warning(s) I use VC++ 6.0 with directX9.0 (October) under win2k. Any solutions?? regards, m4gnus

Share this post


Link to post
Share on other sites
after adding d3d9.lib to the project (i only had d3dx9.lib added so far) theres 1 error less :D 87 left...so keep going ;)
thx for fast response...

regards,
m4gnus

Share this post


Link to post
Share on other sites
Quote:
it sounds like it has something to do with the compiler or sth like that

It does. It sounds like you're either linking with the wrong version of the runtime libraries, or your compiler doesn't support security cookies, a measure imposed by advanced versions of the VS C++ compiler to guard against stack corruption.

Share this post


Link to post
Share on other sites
i already succesfully compiled an app that creates a quad out of 2 tringales and render it to the the screen with the same libraries and the same compiler but it is possible that i forgot to set sth in projects(i included d3dx9.lib and d3d9.lib and set the include+lib paths).

Share this post


Link to post
Share on other sites

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