Mojca Miklavec
Mojca Miklavec
Geant4 recently introduced support for multiple threads. It would make sense to check whether one can avoid reinventing the wheel and use the code from Geant4. I have found this:...
Under Visual Studio 2012 I had to remove `#include ` and replace it with ``` #if defined(_MSC_VER) #include typedef SSIZE_T ssize_t; #define snprintf _snprintf #include #endif ``` to get the...
I was experiencing some problems with the OpenGL inclusion in `GateImageBox.hh`. The code needs to be reviewed and tested.
The linker from Microsoft Visual Studio 2012 complained about multiple definitions of `sum`, `prod`, `opp`, `intdivint` until I removed them from `GateDMapoperators.ihh` or made sure that the code wouldn't be...
The line ``` srandom(static_cast(*theRandomEngine)); ``` from `source/general/src/GateRandomEngine.cc` doesn't work under Windows (MSVC).
A number of source files include `unistd.h`. That doesn't work in Visual Studio 2012.
Some compilers fail to evaluate `fabs(crystal1ID - det1_c)` as in `source/digits_hits/src/GateSinogram.cc` for example. The compiler doesn't know whether to treat the arguments as `float`, `double` or `long double`.
I didn't try to understand the code yet, but if the code is kept untouched, one should provide alternative implementations for compilers where the two functions don't exist. (The functions...
A lot of timing functionality in Gate depends on existence of `sys/time.h` and `timeval`. All time readings and calculations should be reworked a bit to work under Windows.