Game Development Community

Compile error

by Vashner · in Torque Game Engine Advanced · 10/16/2004 (7:03 am) · 19 replies

I am getting this when compiling. My lib and include for the sdk broken somehwere?


Linking...
d3dx9.lib(jcdctmgr.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(trees.obj) : error LNK2001: unresolved external symbol ___security_cookie
etc etc...
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
../example/TSE_DEBUG.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

TSE_DEBUG.exe - 61 error(s), 1 warning(s

#1
10/17/2004 (7:25 pm)
I'm having trouble as well. When compiling with VC++ 6.0 I'm receiving:
Quote:
--------------------Configuration: Torque Shader Engine - Win32 Debug--------------------
Linking...
LINK : fatal error LNK1104: cannot open file "d3d9.lib"
Error executing link.exe.

TSE_DEBUG.exe - 1 error(s), 0 warning(s)

I'm building with DxSDK 9.0c (Summer Update). All appears well with Project Settings and Options. Not sure what the trouble is. I have a gut feeling I'm missing something obvious. Any assistance will be appreciated.
#2
10/17/2004 (9:05 pm)
Yea I am using the October 9.0c as well.

I am not too worried about it at the moment since it's just a pre release build.
#3
10/18/2004 (5:18 am)
Heres a couple of screen shots of Settings and Options for TSE SDK.dsw:

Tool/Options:Directories
softbullets.no-ip.com/images/vc6_options_tse.gif
Project/Settings:Link
softbullets.no-ip.com/images/vc6_settings_tse.gifFull Contents:
ljpeg_DEBUG.lib lpng_DEBUG.lib lungif_DEBUG.lib zlib_DEBUG.lib oleaut32.lib
ole32.lib d3d9.lib dxerr9.lib d3dx9.lib COMCTL32.LIB COMDLG32.LIB USER32.LIB
ADVAPI32.LIB GDI32.LIB WINMM.LIB WSOCK32.LIB vfw32.lib /nologo /subsystem:console
/incremental:yes /pdb:"../engine/out.VC6.DEBUG/TSE_DEBUG.pdb" /debug /machine:I386
/nodefaultlib:"LIBC" /out:"../example/TSE_DEBUG.exe" /pdbtype:sept
/libpath:"../lib/out.VC6.DEBUG"

I reviewed the Technical FAQS several times with no resolution. Any help from the VC6 Gurus would be highly appreciated:)
#4
10/18/2004 (10:07 am)
Frankie your path should be lib for lib and include for include. I see both on your include shot.

Anyone know what a security cookie is? LOL
#5
10/18/2004 (11:55 am)
Randy,

Thanks! Now I'm getting 61 unresolved external symbol @__security_check_cookie@4 Errors:(
#6
10/18/2004 (1:48 pm)
OK now you have my error. At least we are one the same page now.

Maybe it's the SDK version? I'll see if I can try with an older SDK.
#7
10/18/2004 (4:40 pm)
Could be a 9c thing. I haven't tried it yet, some ppl here have been using it OK with .NET, but I don't think anyone's tried it with VC6.
#8
10/18/2004 (5:16 pm)
Ok this one officially giving me a headache :)

Some good reading here

http://www.codeproject.com/tips/seccheck.asp?df=100&forumid=3317&exp=0&select=8...
#9
10/18/2004 (5:18 pm)
I use 9c with .net, but not with VC6... Could be a weird interaction there.
#10
10/18/2004 (5:36 pm)
Well no rush for me.
#11
10/18/2004 (10:57 pm)
Hmm, not sure about the version, I've compiled with DX9 (Not sure about the version though.) before with no trouble in the past. In fact, was porting over TGE's Starter.fps. Unfortunatley, a disk failure forced me to reinstall anew. Now all these woes:(
#12
10/19/2004 (3:42 am)
Per Microsoft Additional Information for DirectX 9.0 Software Development Kit (SDK) with DirectX 9.0b Runtime:

Primary areas of concentration for this Summer Update have been with the Direct3D Extension Library (D3DX), Graphics Samples, Tools and documentation. The included developer runtimes and the DirectX Redistributable have also been updated to include the latest updates (DirectX 9.0c).

This download does NOT include the DirectX 9.0 SDK Extras content, such as Japanese Docs, Symbol Files, Direct3D XFile Exporters, DirectShow DVD components and a D3dx.lib that is compatible with Visual Studio 6.0

Back to DirectX9.0b
#13
10/19/2004 (9:39 am)
Well I need 9.0c for Jump To Lightspeed testing at the moment. I'll try 9.0b next week after the beta closes.

Or maybe will just look into this error more. If we can fix it for the c SDK that would be better.


Can you have a 9.0c retail and 9.0b debug? I don't really understand fully how or if the SDK
overwrites the end user version. I do know about that retail vs. debug switch.
#14
10/19/2004 (11:59 am)
Randy,

There is an extra support pack for both summer and october DX9.0c.
#15
10/19/2004 (12:51 pm)
Wow thx i'll give it a spin.

Update: Your da man!

"--------------------Configuration: Torque Shader Engine - Win32 Debug--------------------
Linking...

TSE_DEBUG.exe - 0 error(s), 0 warning(s)"

Extracted the extra's download. There was a folder with some lib and dll.

Cut and pasted it into the SDK lib directory with overwrite. (Oct 9.0c + supplemental)

Thanks.
#16
10/19/2004 (1:22 pm)
YES!

Linking...

TSE_DEBUG.exe - 0 error(s), 0 warning(s).

Perhaps we can generate a resource out of this.
#17
10/19/2004 (7:22 pm)
It's more of a configuration issue / technical fix than a resource. Where it needs to go
is an appended note in the TSE EA compile instructions. Good work finding the fix.
#18
01/26/2005 (10:18 am)
And the link to the December 2004 update as well...
#19
02/05/2005 (3:16 pm)
The December update (and full package for that matter) do not work with VC6.

The October version is the last one that supports VC6.