|
Resources |
Main / P3-Code-Release - CS559 2007Getting P3 to work in release buildThe original version of the P3 example code didn't build in release build. You can download a new version hhere (the file name will be "GrTown2007v2.zip") that has the fixes. Otherwise, if you have already started making changes you can either only build your program in debug build (while this is generally not a good idea, it is acceptable for this project provided your program runs fast enough). Or do the following: 1. Set the release build settings
The program should now compile in release mode, but if you try to run it, it will crash. There is a wierd bug in the driving code. (which is code that you aren't supposed to look at anyway). So you need to update the driving code. 2. Get new versions of Road.cpp, Roads.H and Drive.cppDownload the new versions of Road.cpp and Drive.cpp and use them to replace the old ones. They go in the "Roads" subdirectory. You can download the contents of that directory here. If you really want to know, what was happening is that the driving code has a problem if cars start out in a particular (unusual) configuration. Under debug build, the random number generator doesn't seem to put cars in places that cause this to happen. |