Compiling header file changes with VC
by Justin Mette · in Torque Game Engine · 08/26/2001 (12:51 pm) · 1 replies
I am having some problems getting the V12 Engine project to recompile properly when making changes to a header file. For example, I added a member variable to the shapeBase class and used it in the implementation. I recompiled the project and got an exception when I tried to load a mission. If I do a clean rebuild of the entire project (10 minutes+), the problem goes away.
I've also seen other strange problems with editing header files as far as dependancy goes. If I change a header file that other implementation files depend on - those other implementation files dont automatically rebuild - as they should. Again, a fresh build of the V12 Engine project fixes the problem everytime.
When I use the debugger to try an diagnose the issues, it always ends up being that the compiled code is unaware of the changes I have made to the header files.
I am guessing that this is a VC setup issue (I seem to remember facing this in other projects). I was going to start digging in to figure out what's wrong but I figured I check the forums to see if anyone else has stumbled on this problem and subsequently fixed it.
I've also seen other strange problems with editing header files as far as dependancy goes. If I change a header file that other implementation files depend on - those other implementation files dont automatically rebuild - as they should. Again, a fresh build of the V12 Engine project fixes the problem everytime.
When I use the debugger to try an diagnose the issues, it always ends up being that the compiled code is unaware of the changes I have made to the header files.
I am guessing that this is a VC setup issue (I seem to remember facing this in other projects). I was going to start digging in to figure out what's wrong but I figured I check the forums to see if anyone else has stumbled on this problem and subsequently fixed it.
Torque Owner David Dougher
Pariah Games
Remember to rebuild the libraries first before you recompile the engine code. Otherwise the libraries will be out of sync with the engine.
Also make sure the code you are working on isn't write protected - some of it is.