You might need to modify the setInput method of the TOMUI class to support tracing in a new operating system. When creating input streams for the stepper, there might be compilation errors if the call to create a new ifstream in the setInput method uses ios::nocreate. Because ios::nocreate is not part of the C++ standard, some compilers (such as Green Hills) do not support it. Currently, the implementation of setInput in the tom\tomstep.cpp file has options to create ifstreams for UNIX and the STL without using ios::nocreate. The implementation is as follows:
ifdef unix
// unix : Actually Solaris 2 cannot open for READ if
// the ios::nocreate is placed here
ifstream* file = new ifstream(filename);
#else
#ifdef OM_USE_STL
ifstream* file = new ifstream(filename);
#else
ifstream* file = new ifstream(filename,ios::nocreate);
#endif
In addition, you might need to add another #ifdef clause if the new environment does not support ios::nocreate. For example, add the following lines of code before the last #else for the Green Hills compiler:
#else
#ifdef green
ifstream* file = new ifstream(filename);