Dear Obfuscator,
Thanks for your reply. The program runs fine in the terminal and in Codeblocks (without adjusting any library paths). It is only when I try to use the the debugger that I get the error. Doesn't this indicate that the problem is in the Codeblocks debugger, not the program itself.
I have put a breakpoint at the first statement after main, but the debugger doesn't get to it
If I have an incorrect version of OpenCV, why would the program run in the Ubuntu terminal.
Here is the output when I run the Codeblocks executable file 'TestIO' from the Ubuntu terminal. It creates the output file 'Neil102' correctly.
eleanor@eleanor-desktop:~/calib/CameraCalibration/bin/Debug$ ./TestIO Neil102
Hi there Neil
Write Done.
Reading:
100image1.jpg
Awesomeness
baboon.jpg
Two 2; One 1
R = [1, 0, 0;
0, 1, 0;
0, 0, 1]
T = [0;
0;
0]
MyData =
{ id = mydata1234, X = 3.14159, A = 97}
Attempt to read NonExisting (should initialize the data structure with its default).
NonExisting =
{ id = , X = 0, A = 0}
Tip: Open up Neil102 with a text editor to see the serialized data.
eleanor@eleanor-desktop:~/calib/CameraCalibration/bin/Debug$
Also, No problem with I run the 'TestIO' file in Codeblocks.
If I put a break point at the first statement after main ie at cout<<"Hi there Neil"<<endl<<endl;
then the output in the Codeblocks terminal window is "warning: GDB: Failed to set controlling terminal: Operation not permitted" and then a rectangular box on the next line.
Yours in confusion still,
NeilK