Visual C++ Compile Errors
by Matt Fairfax · in Torque Game Engine · 08/09/2001 (9:14 am) · 50 replies
Error:
Solution:
The registry entries needed to make Visual C++ compatble with the .cc file extension haven't been added. Browse to the /v12/vc++ folder and Double click on "VC6 .cc compiling.reg" to add it to your registry. You will also want to add "VC6 .cc editing.reg" to your registry so that the .cc files will be syntax colored like a normal C++ file.
Quote:
--------------------Configuration: v12 Engine - Win32 Debug--------------------
Performing Custom Build Step on .\math\mMathSSE_ASM.asm
Performing Custom Build Step on .\math\mMathAMD_ASM.asm
Performing Custom Build Step on .\math\mMath_ASM.asm
Performing Custom Build Step on .\interior\itfdump.asm
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 _mainCRTStartup
out.VC6.DEBUG/v12Test_DEBUG.exe : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.
v12Test_DEBUG.exe - 5 error(s), 0 warning(s)
Solution:
The registry entries needed to make Visual C++ compatble with the .cc file extension haven't been added. Browse to the /v12/vc++ folder and Double click on "VC6 .cc compiling.reg" to add it to your registry. You will also want to add "VC6 .cc editing.reg" to your registry so that the .cc files will be syntax colored like a normal C++ file.
About the author
By day, I am a senior programmer at The Playforge, makers of the popular iPhone game Zombie Farm. By night, I work on my own games as Night Heron Games. I am an ex-GarageGames employee who helped ship TGE, TGEA, Torque 3D, and Constructor.
#42
But when I went to compile everything was messed up. And I can Build Batch and everything but when I go to load it I get and error window where I can close or debug, so I click debug and get another error window saying "Unhandled Exception 0xC000005; Acess Violation" then I get another window and if I cancel that I'm in some mysterious code which looks like this:
++++++++++++++++++++++++++++++++++++++++++++++++
main_loop:
007A8911 mov dword ptr [edi],edx
007A8913 add edi,4
main_loop_entrance:
007A8916 mov edx,7EFEFEFFh
007A891B mov eax,dword ptr [ecx]
007A891D add edx,eax
007A891F xor eax,0FFFFFFFFh
007A8922 xor eax,edx
007A8924 mov edx,dword ptr [ecx]
007A8926 add ecx,4
007A8929 test eax,81010100h
+++++++++++++++++++++++++++++++++++++++++++++++++++
in inftrees.obj I belive and there is an arrow right below mainloop;
I don't know what happened but before I could compile without any errors or warnings(which I'm getting warnings now in the library build something about truncated ends and loss of data or something) does anyone know what is wrong? I am totally lost?!?! Anthony
09/10/2001 (7:28 pm)
Ok I get that, infact I was doing that with an Intro copy of VC++ and it worked fine :-) BUT today I got the professional version and redid everything took off old added new and upgrade and NASM (belive it is working)But when I went to compile everything was messed up. And I can Build Batch and everything but when I go to load it I get and error window where I can close or debug, so I click debug and get another error window saying "Unhandled Exception 0xC000005; Acess Violation" then I get another window and if I cancel that I'm in some mysterious code which looks like this:
++++++++++++++++++++++++++++++++++++++++++++++++
main_loop:
007A8911 mov dword ptr [edi],edx
007A8913 add edi,4
main_loop_entrance:
007A8916 mov edx,7EFEFEFFh
007A891B mov eax,dword ptr [ecx]
007A891D add edx,eax
007A891F xor eax,0FFFFFFFFh
007A8922 xor eax,edx
007A8924 mov edx,dword ptr [ecx]
007A8926 add ecx,4
007A8929 test eax,81010100h
+++++++++++++++++++++++++++++++++++++++++++++++++++
in inftrees.obj I belive and there is an arrow right below mainloop;
I don't know what happened but before I could compile without any errors or warnings(which I'm getting warnings now in the library build something about truncated ends and loss of data or something) does anyone know what is wrong? I am totally lost?!?! Anthony
#43
09/10/2001 (8:07 pm)
OH here is just another mystery to add IF I make a shortcut to the exe it will open and run fine and yes I am running on ME argh Anthony
#44
LINK : fatal error LNK1104: cannot open file "\GarageGames\Torque\engine\out.VC6.DEBUG\itfdump.obj"
Error executing link.exe.
I should probably mention that I am using the newer release of the Torque Engine, the one with the consolidated project file (Torque Engine SDK.dsw). I just go Build>Build Torque Engine SDK DEBUG and it all works fine (I had the same problem with NASM and Norton Anti-Virus, but fixed it thanks to this thread), up until it links, then gives me that error.
I have downloaded and re-installed NASM several times. I have it in C:\Windows\Command, and C:\Program Files\Microsoft Visual Studio\NASM (which I put in VC6's path), and I have Service Pack 5, and I have followed all directions. I am profoundly stumped. Oh yeah. I'm running Windows ME (aka trash), so that could be the problem right there. ANYONE who has ANY sort of answer, please please please (I'm begging you!) - help me!
Thanks in advance.
10/27/2001 (1:05 am)
Hello everyone, I am new to this forum, and I need some help. I have been reading this thread (and others like it), because I am having a similar problem with NASM. I have tried everything mentioned here, and still I get the same problem. It is the exact problem described above:LINK : fatal error LNK1104: cannot open file "\GarageGames\Torque\engine\out.VC6.DEBUG\itfdump.obj"
Error executing link.exe.
I should probably mention that I am using the newer release of the Torque Engine, the one with the consolidated project file (Torque Engine SDK.dsw). I just go Build>Build Torque Engine SDK DEBUG and it all works fine (I had the same problem with NASM and Norton Anti-Virus, but fixed it thanks to this thread), up until it links, then gives me that error.
I have downloaded and re-installed NASM several times. I have it in C:\Windows\Command, and C:\Program Files\Microsoft Visual Studio\NASM (which I put in VC6's path), and I have Service Pack 5, and I have followed all directions. I am profoundly stumped. Oh yeah. I'm running Windows ME (aka trash), so that could be the problem right there. ANYONE who has ANY sort of answer, please please please (I'm begging you!) - help me!
Thanks in advance.
#45
10/27/2001 (1:40 am)
Had all of these problems last week. They were fixed after finding some help in the forums... i'm on a windows ME system. Now I have the same problems. the damn thing is compiled but wont run on my system, only on other computers :(
#46
10/27/2001 (1:54 am)
Why don't you guys include a clean compile with the update. Because that would give us something to work with until we get it to compile right. Damn.. work is comletely stuck because of this...
#47
10/27/2001 (5:33 am)
heh looks to to me like you ME users should dump it and go to another os
#48
10/27/2001 (9:30 am)
Can we move problems to another thread, I'm not sure what's working or not... One note... if you are having problems with the VC6 ide, please try the CVS Dev_Stable tag and let me know if that fixes it.
#49
11/03/2001 (6:17 pm)
I have admitedly *not* put together a project like this in VC++ before, so I'd like to ask some elementary questions. I seem to have no problems batch-building the various parts of the engine. I created a new workspace, added the built projects to it (Project -> Insert Project into Workspace), and tried to compile and execute. This did not work. How should I be going about this? Am I even on the right track? Do I even need to be creating a new workspace?
#50
fatal exception OE occured at 0028:DDE1C28A in VXD ASPWave (1) + 0001432A.
Any ideas on how to fix this?
excuss my bad typing its because im tired and have been working on some other stuff for a long time and eye strain is setting in.
Never mind i fixed it had to change some video settings.
11/03/2001 (9:07 pm)
I am not sure about how to fix this error i get when i try to run the demo that came with the engine also comes up when running other torque demos my guess its something to do with sound drivers.fatal exception OE occured at 0028:DDE1C28A in VXD ASPWave (1) + 0001432A.
Any ideas on how to fix this?
excuss my bad typing its because im tired and have been working on some other stuff for a long time and eye strain is setting in.
Never mind i fixed it had to change some video settings.
Torque Owner David Dougher
Pariah Games
To quote the essential part of the docs...
"Building with the Visual C++ IDE
Workspace Locations and Descriptions
The v12 Engine workspace is located in the v12/engine dir. This is the primary workspace containing the v12 game engine.
The Libraries workspace is located in the v12/lib dir. This workspace contains the supporting libraries required by the v12 game engine.
The Tools workspace is located in the v12/tools dir. These are the various tools that are used in creating content for the v12 engine.
Building the v12
Note:
The Libraries workspace must be built before the v12 Engine workspace.
The v12 Engine workspace must be built before the Tools workspace.
The same configuration (Debug/Release) must be built across all of the workspaces.
To build the Libraries workspace open v12/lib/Libraries.dsw. Choose Build->Batch Build from the drop down menus. Make sure all of the projects are selected for the configuration you wish to build (Debug/Release) and that Selection only is unchecked. Click Build and it should build all of the Libraries projects.
After you build the Libraries open v12/engine/v12 Engine.dsw to build the v12 Engine workspace. Choose Build->Batch Build from the drop down menus. Make sure all of the projects are selected for the configuration you wish to build (Debug/Release) and that Selection only is unchecked. Click Build and it should build all of the v12 Engine projects.
Once the Libraries and v12 Engine workspaces are built, you can build the Tools workspace. Open v12/tools/Tools.dsw and choose Build->Batch Build from the drop down menus. Make sure all of the projects are selected for the configuration you wish to build (Debug/Release) and that Selection only is unchecked. Click Build and it should build all of the Tools projects.
Congratulations you have just successfully built the v12!"
For what you need you only have to build the libraries portion. This will build opengl2d3d.dll and place it in the correct place in the tree for you to run it.
It takes a while to compile each section but I had no problems. You will get several warning messages - these will not keep the modules from being built.