Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / DarkSDK and Visual Studio 6 - Linking problem

Author
Message
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 8th Dec 2004 06:17
I'm using Visual Studio 6 SP4, will get SP6 but need to wait. Anyway, when I compile and link the samples supplied with the Freeware version of DGSDK, I get the following errors:

--------------------Configuration: Animation Showcase - Win32 Release--------------------
Compiling resources...
Compiling...
Main.cpp
Linking...
Creating library Release/Animation Showcase.lib and object Release/Animation Showcase.exp
d3dx9.lib(jcdctmgr.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(trees.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(cshaderprogram.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(binaryload.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(xdata.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(cfxlprogram.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(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(cvsprogram.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(cbaseprogram.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(cprogram.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(xfile.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(jdmarker.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(ceffectcompiler.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(cparse.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(ceffect.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(cleanmesh.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(ccompiler.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(cpudetect.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(d3dx9shader.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(d3dx9effect.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(createmesh.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(loadx.obj) : error LNK2001: unresolved external symbol ___security_cookie
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(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(cshaderprogram.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(binaryload.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(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(cfxlprogram.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(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(cvsprogram.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(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(xfile.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(jdmarker.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(ceffectcompiler.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(ceffect.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(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(ccompiler.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(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
d3dx9.lib(d3dx9shader.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(d3dx9effect.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(loadx.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
Release/Animation Showcase.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

Animation Showcase.exe - 93 error(s), 0 warning(s)


I'm using DirectX SDK v9.0c. Does anybody know why this is and how to rectify the problem.

---- Roll on Dev-C++ support

Paul.


Home of the Cartography Shop - DarkBASIC Professional map importer
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 8th Dec 2004 06:22 Edited at: 8th Dec 2004 06:23
yes - I had that problem with VS 6

You need SP 5, and if I remember correctly you need a modify set of DX DLL's and to make sure the DirectX & DarkSDK headers & libaries are first.

The modified lib's are availiable from Microsoft - IanM has made a post detailing where from.

Walk softly... and carry a big gun...
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 8th Dec 2004 06:26
Yeah, I ensured that DX headers and libraries were first, then DGSDK's files in that order, although yes, I've not yet updated the SP for VS6. But even so, surely the SP4 to SP6 update, would this make a difference. I'll swap the locations around to see if this is a problem. Looks like I'll have to wait until I can get ahold of SP6. The thing's 60MB so I'll need a BB connection to get this.

Thanks TCA.

Paul.


Home of the Cartography Shop - DarkBASIC Professional map importer
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 8th Dec 2004 06:28
Have you get the extra set of DX libraries ? You do need them (they are part of the problem)

Walk softly... and carry a big gun...
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 8th Dec 2004 06:30
TCA, Which thread was the link that IanM posted at, It doesn't seem that I have the extra libraries, could you give me a quick helper?

Paul.


Home of the Cartography Shop - DarkBASIC Professional map importer
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 8th Dec 2004 06:35 Edited at: 8th Dec 2004 06:39
Unfortunately he didn't provide a link, just said :

The rest of the answer ...

Install the extras pack, then add the lib directory to the list of directories to locate lib files (Menu options Tools->Options, select tab 'Directories', select 'lib' from the 'Show Directories for' dropdown box, click the 'new' icon and add the directory. Make sure that this directory is first in the list)

Try here : http://www.microsoft.com/downloads/details.aspx?FamilyID=d6f237de-a6ee-4ded-8bb6-139536162eb8&displaylang=en

Walk softly... and carry a big gun...
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 8th Dec 2004 06:37
Top stuff, thanks

Paul.


Home of the Cartography Shop - DarkBASIC Professional map importer
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 8th Dec 2004 06:43 Edited at: 8th Dec 2004 06:44
Disregard


Home of the Cartography Shop - DarkBASIC Professional map importer
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 8th Dec 2004 06:44
It sounds about right. Unfortunately only Ian can confirm it...

Walk softly... and carry a big gun...
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 8th Dec 2004 07:07
Confirm what?

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins and source code http://www.matrix1.demon.co.uk
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 8th Dec 2004 07:10
DX9 extras - link thereof - correct ?

Walk softly... and carry a big gun...
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 8th Dec 2004 22:13
Ok, I've posted an email to Mike, but I've now installed SP6 for Visual Studio 6, and the DX (October 2004) extras, also adjusting the Library paths to point to the new added (Extras\Visual Stu... folder) location, and the problem still exists.

... See what Mike says.

Paul.


Home of the Cartography Shop - DarkBASIC Professional map importer
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 9th Dec 2004 01:15
No, don't adjust the existing path, add a new path.

Not all of the .lib files are in the extras pack, so you still need the others. Just make sure that your new path is ahead of the existing one and you'll be fine.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins and source code http://www.matrix1.demon.co.uk
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 9th Dec 2004 02:27 Edited at: 9th Dec 2004 02:30
Ian, I have.

This is the lib path list as it stands:

Crogram FilesThe Game CreatorsDark Game SDK - FREEWARE EditionLibVS6
Crogram FilesMicrosoft DirectX 9.0 SDK (October 2004)Lib
CROGRAM FILESMICROSOFT DIRECTX 9.0 SDK (OCTOBER 2004)EXTRASD3DX9 VISUAL STUDIO 6

Then the standard paths for VC98.

And the problem still exists.

[EDIT] Visual Studio 6 SP6 is installed, and Windows 2000 SP4.


Home of the Cartography Shop - DarkBASIC Professional map importer
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 9th Dec 2004 02:30
Switch the order of the last two, and you should have it - you need the extra VC++6 libs to be picked up before the standard DX SDK libs

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins and source code http://www.matrix1.demon.co.uk
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 9th Dec 2004 02:33 Edited at: 9th Dec 2004 02:40
Ahha, ok, I'll give'r a whirl...

[EDIT] Ian, thanks, takes forever and a day to link but the errors have disappeared.


Home of the Cartography Shop - DarkBASIC Professional map importer
MiR
21
Years of Service
User Offline
Joined: 13th Jul 2003
Location: Spain
Posted: 9th Dec 2004 03:01 Edited at: 9th Dec 2004 03:04
Ummmm. You don´t think this error thing is contagous do you?. Only my VS2003 is reporting aparent errors now when it didn´t before. I think I´ll quorentine it to protect other forum members.


A bargain at 900000€ second hand
Libera tu mente y te liberaras.
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 9th Dec 2004 03:40 Edited at: 9th Dec 2004 03:41
The mere thought may be contagious.

Paul.


Home of the Cartography Shop - DarkBASIC Professional map importer
Lance
21
Years of Service
User Offline
Joined: 22nd Jul 2003
Location: Third planet from Sun
Posted: 12th Dec 2004 05:50
I have never installed any of the service packs and I can compile with no errors. Of cource I got the latest SDK(DX9c) and the extras(D3dx9 etc)...

The only question I have is why does VC6 have to build a lib file along with the .exe.....

I still like VC 4.0 .........


Lance
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 12th Dec 2004 06:20
No idea - You could probably stop it though.

Beware the cat... The alien... The heretic...
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 12th Dec 2004 09:11
Lance, a standard win32 EXE doesn't appear to build a lib but I think because of the SDK comprising of linked static lib files, the resulting app lib contains the functions that are only used by the application when all the other libs are pulled in. Presumably also if your app has exports, but I'm not really clear on this though.

Paul.


Home of the Cartography Shop - DarkBASIC Professional map importer

Login to post a reply

Server time is: 2024-11-18 21:41:28
Your offset time is: 2024-11-18 21:41:28