Game Development Community

X64 linker errors

by Andy S. · in Torque 3D Professional · 11/08/2014 (4:19 am) · 1 replies

I added walkabout to 3.6.2 and compiled for X32 which worked perfectly. Then, i changed the to X64 as described on the Torque3d.org site, but I get always a linker error.

I used These instructions:

Targeting 64-bit Windows

Please follow these instructions once you have generated a project to target 64-bit platforms. After performing that, you'll also need to update several file-specific compile instructions. There are a number of assembler files in the repository which need to be edited. Right-click on each assembler (.asm) file, then edit the custom build command to use win64 instead of win32.

This is the error I got:

Error 68 error LNK1112: module machine type 'X86' conflicts with target machine type 'x64' D:DownloadsTorque3D-3.6.2Torque3D-3.6.2My ProjectsTestbuildFilesVisualStudio 2010projectsx64ReleasemMathAMD_ASM.obj 1

Error 70 error LNK1181: cannot open input file 'D:DownloadsTorque3D-3.6.2Torque3D-3.6.2My ProjectsTestbuildFilesVisualStudio 2010x64ReleaseTest DLL.lib' D:DownloadsTorque3D-3.6.2Torque3D-3.6.2My ProjectsTestbuildFilesVisualStudio 2010projectsLINK



I guess i made some mistake when editing the asm files. What exactly do i have to Change? I use VS2013, and I don't see this custom build command...where do i find this exactly? Did anybody succeed in compiling for X64 using the instructions from above?



#1
11/08/2014 (5:12 am)
ok, I found out which asm files and how to Change them...however the file "platformCPUInfo.asm" does not compile with win64...it gives an error saying that some instructions are not compatible with x64. Any ideas?