Having problems when building in VC6++
by Hugo Queiriga · in Technical Issues · 03/24/2002 (5:05 am) · 2 replies
This is what i get, when i try to build,
Linking...
itfdump.obj : error LNK2001: unresolved external symbol _texGen0
itfdump.obj : error LNK2001: unresolved external symbol _texGen1
itfdump.obj : error LNK2001: unresolved external symbol _fogCoordinatePointer
LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup
../example/torqueDemo.exe : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.
can anyone hel ome on this!
Linking...
itfdump.obj : error LNK2001: unresolved external symbol _texGen0
itfdump.obj : error LNK2001: unresolved external symbol _texGen1
itfdump.obj : error LNK2001: unresolved external symbol _fogCoordinatePointer
LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup
../example/torqueDemo.exe : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.
can anyone hel ome on this!
#2
If you open your workspace and click on project ->settings
Did you change the information in the Torque Lib->source code->interior and Math folders?
listed under "Interior" and click on a file called
"itfdump.asm" (this is an assembly file thus the NASM program is needed)
In the "Commands" box on the right - change the info to look like this
nasmw.exe -f win32 $(InputPath) -o "$(IntDir)/$(InputName).obj"
(The above should be all one line)
(you are removing the $(WkspDir)/../bin/nasm/ info and the quotes around
nasmw.exe)
Now do the same thing for the 3 asm files listed in the Math folder.
03/27/2002 (7:26 am)
Just thought of something else thats a possibilityIf you open your workspace and click on project ->settings
Did you change the information in the Torque Lib->source code->interior and Math folders?
listed under "Interior" and click on a file called
"itfdump.asm" (this is an assembly file thus the NASM program is needed)
In the "Commands" box on the right - change the info to look like this
nasmw.exe -f win32 $(InputPath) -o "$(IntDir)/$(InputName).obj"
(The above should be all one line)
(you are removing the $(WkspDir)/../bin/nasm/ info and the quotes around
nasmw.exe)
Now do the same thing for the 3 asm files listed in the Math folder.
Torque Owner Blas
It looks like you didnt install NASM correctly. I just posted a step-step thread on how to compile correctly (see above). If you dont want to read through my whole post and you think you have everything else set up correct then here is the NASM info...
Get NASM
www.web-sites.co.uk/nasm
The only file NASM needs to run is its own executable, so copy nasm.exe and nasmw.exe to a directory in your PATH (I put mine in C:\Windows), or alternatively edit autoexec.bat to add the nasm directory to your PATH. (If you're only installing the Win32 version, you may wish to rename it to nasm.exe.) If you are using MSVC++ ide, then add NASM to one of the directories listed in Tools > Options > Directories > Executable Files list.
Hope this helps!
Blas