Hello:
I am using Code:Blocks svn 10122 in Xubuntu 14.04 LTS.
I have a file which has been given to me in order to demonstrate certain functions. (I am a student.)
Running this file in the debugger produces an anomaly around the srand() function that I think may be of concern to developers. That is why I am posting to this forum.
When the debugger is run using the "start/continue" red arrow, the .cpp file (called boolModule.cpp) compiles and runs. However, when I try to step through (using the 'step into' arrow) the debugger hangs at the srand() function. (This is line 30 in boolModule.cpp. boolModule.cpp is attached to this posting.) The error reads "Cannot open file: random.c". Continued pushing of the 'step into' arrow changes this error to: "Cannot open file: random_r.c". I attach a screen shot of the Call Stack window.
To add to the concern, when I run the debugger on boolModule.cpp in Code:Blocks in Windows 7, there are no problems.
Again, to recap:
1. in xubuntu: run debugger, program compiles and runs
2. in xubuntu: step into, program stalls at srand() function.
3. in windows: no problem evident.
I hope this posting is placed as it is supposed to be. As I said, I'm a student. But I've spent some time trying to determine how I could induce this anomalous behavior, and I haven't been able to do so. Hence, the posting.