NASM problems
by Neil Marshall · in Torque Game Engine · 03/03/2006 (11:41 am) · 1 replies
I'm trying to compile Torque as a plugin and I can get it to compile IF I disable NASM in types.visualc.h. I can't for the life of me figure out why I need to disable it though. (I think it's causing problems for me later on which is why I'm bringing this up)
In types.visualc.h there is a line in the "Identify the CPU" section which says #define TORQUE_SUPPORTS_NASM
When I leave that in, this is the output I see:
Does anyone know whats going on? All of those functions are ASM.
Code in question
In types.visualc.h there is a line in the "Identify the CPU" section which says #define TORQUE_SUPPORTS_NASM
When I leave that in, this is the output I see:
...
boxConvex.cc
abstractPolyList.cc
plugin.cpp
Linking...
mMathAMD.obj : error LNK2019: unresolved external symbol _Athlon_MatrixF_x_MatrixF referenced in function "void __cdecl mInstall_AMD_Math(void)" (?mInstall_AMD_Math@@YAXXZ)
mMathSSE.obj : error LNK2019: unresolved external symbol _SSE_MatrixF_x_MatrixF referenced in function "void __cdecl mInstall_Library_SSE(void)" (?mInstall_Library_SSE@@YAXXZ)
winCPUInfo.obj : error LNK2019: unresolved external symbol _detectX86CPUInfo referenced in function "public: static void __cdecl Processor::init(void)" (?init@Processor@@SAXXZ)
blender.obj : error LNK2019: unresolved external symbol _cheatmips4x4 referenced in function "public: void __thiscall Blender::blend(int,int,int,unsigned short const *,unsigned short * *)" (?blend@Blender@@QAEXHHHPBGPAPAG@Z)
blender.obj : error LNK2019: unresolved external symbol _cheatmips referenced in function "public: void __thiscall Blender::blend(int,int,int,unsigned short const *,unsigned short * *)" (?blend@Blender@@QAEXHHHPBGPAPAG@Z)
blender.obj : error LNK2019: unresolved external symbol _do1x1Lumel referenced in function "public: void __thiscall Blender::blend(int,int,int,unsigned short const *,unsigned short * *)" (?blend@Blender@@QAEXHHHPBGPAPAG@Z)
blender.obj : error LNK2019: unresolved external symbol _doLumelPlus1Mip referenced in function "public: void __thiscall Blender::blend(int,int,int,unsigned short const *,unsigned short * *)" (?blend@Blender@@QAEXHHHPBGPAPAG@Z)
blender.obj : error LNK2019: unresolved external symbol _doSquare4 referenced in function "public: void __thiscall Blender::blend(int,int,int,unsigned short const *,unsigned short * *)" (?blend@Blender@@QAEXHHHPBGPAPAG@Z)
blender.obj : error LNK2019: unresolved external symbol _doSquare3 referenced in function "public: void __thiscall Blender::blend(int,int,int,unsigned short const *,unsigned short * *)" (?blend@Blender@@QAEXHHHPBGPAPAG@Z)
blender.obj : error LNK2019: unresolved external symbol _doSquare2 referenced in function "public: void __thiscall Blender::blend(int,int,int,unsigned short const *,unsigned short * *)" (?blend@Blender@@QAEXHHHPBGPAPAG@Z)
blender.obj : error LNK2001: unresolved external symbol _srcrows_x2_MinusTPL
blender.obj : error LNK2001: unresolved external symbol _minus1srcrowsPlus8
blender.obj : error LNK2001: unresolved external symbol _mip1_dstrowadd
blender.obj : error LNK2001: unresolved external symbol _mip0_dstrowadd
blender.obj : error LNK2001: unresolved external symbol _nextdstrow
blender.obj : error LNK2001: unresolved external symbol _nextsrcrow
blender.obj : error LNK2001: unresolved external symbol _sTargetTexelsPerLumelDiv2
blender.obj : error LNK2001: unresolved external symbol _sTargetTexelsPerLumel
blender.obj : error LNK2001: unresolved external symbol _sTargetTexelsPerLumel_log2
..\engine\out.PluginFF.Debug\/np3DPluginFF.dll : fatal error LNK1120: 19 unresolved externals
Build log was saved at "file://c:\Projects\tge14\TGE14Plugin\engine\out.PluginFF.Debug\BuildLog.htm"
np3DPluginFF - 20 error(s), 0 warning(s)
---------------------- Done ----------------------
Build: 0 succeeded, 1 failed, 0 skippedDoes anyone know whats going on? All of those functions are ASM.
Code in question
Torque Owner Neil Marshall
All of my .asm files lost their custom build step attributes in the Visual Studio Solution so the .obj files weren't being created.