Game Development Community

Compiling for x64

by Konrad Kiss · in Torque Game Engine Advanced · 12/02/2008 (3:54 am) · 4 replies

Hi,

I am trying to compile TGEA 1.7.1 (and 1.8 once I manage) in a 64bit Vista environment to see how it would behave on 64bit servers, but I'm having a great number of linking errors, such as:

1>Linking...
1>gfxPCD3D9Target.obj : error LNK2001: unresolved external symbol _DXGetErrorString9A@4
...
1>gfxD3D9Shader.obj : error LNK2001: unresolved external symbol _DXGetErrorDescription9A@4
...
1>libcpmtd.lib(xmtx.obj) : error LNK2001: unresolved external symbol __imp__Sleep@4
...
1>winConsole.obj : error LNK2001: unresolved external symbol __imp__OutputDebugStringA@4
...
1>getdxver.obj : error LNK2001: unresolved external symbol __imp__VariantClear@4

240 overall. I am using the November 2008 DirectX SDK, and v6.0a of the Windows SDK.

I know there are people at GG, and perhaps others too who use TGEA in x64. I'd very much appreciate any help on this, it's been driving me nuts.

Thank you,
Konrad

#1
12/02/2008 (7:18 am)
I think I screwed up by not including a lib directory, but now this is what I'm getting:

1>LIBCMTD.lib(typinfo.obj) : fatal error LNK1112: 
[b]module machine type 'IA64' conflicts with target machine type 'X86'[/b]

Does that sound familiar to anybody?
#2
12/02/2008 (7:53 am)
Nevermind, got it. In Project settings - Configuration Properties / Linker / Advanced:

Set Target Machine to MachineX64 (/MACHINE:X64)

Still, this just unleashed hell...
#3
07/19/2009 (5:45 pm)
@Konrad

Did you ever get this to compile on Vista 64?

I was successful with x86, but running dedicated would crash. Now I'm trying to compile with x64 on Vista 64, and I get the last error you showed. I changed the project setting to MachineX64, but that didn't fix the error. I changed the Solutions Platform dropdown to x64, but that just barfed errors all over my screen. (over 7000)

Matt
#4
07/20/2009 (1:51 am)
@Matt: Yeah, I think those 7k errors are actually a step forward. Check out the x64 support? and the 64bit server, 32bit clients threads for additional info that might help you move on. Good luck!

Edit: I didn't manage, I actually gave up on this for now.