Robert McLay wrote:
I'm using boost 1.43.0. I have enclose a program which uses boost::program_options on a Mac OS 10.6 and when I run it, I get errors. I have compiled boost with g++ version 4.4.1 and version 4.5.0 and I get the same errors. I have tried the version of boost (1.42.0) that comes from macports as well as downloaded version that I have build.
clo(87082) malloc: *** error for object 0xa0136db0: pointer being freed was not allocated.
The program is given below. I have run the same program with boost 1.43.0 under linux and I don't get any errors. It is also completely clean of any errors when run through valgrind. The program is an example showing problem I'm having. It has been extracted from a larger program. Am I correctly using the library or is there a problem with boost (and only on a Mac?)
Could you catch a backtrace at the point where error happens? - Volodya