I guess I ran into some kind of configuration problem, but I just don't get it. I'm running:
Mac OS X 10.5.8
I built the dylibs first:
but I wanted to link statically, without installing the libraries into my system, so I built the static libs:
./configure --config=Darwin32-gcc --static
Then I copied the headers and the static libs into my project dir (I have the complete project ready for upload if someone is interested).
Created the xcode-project, setup the include paths, build, linked..., everything fine.
I ran the example at http://www.codeproject.com/Articles/252 ... -with-HTTP, but executing this line I crashed
cout << res.getReason(); // Program received signal: “EXC_BAD_ACCESS”.
the rest of the example worked, so I checked with the following minimal code:
int main(int argc, char **argv)
std::cout << res.getReason (); // <------------------------ crashes
I checked res.getReason ().c_str () that was null, but it should be "OK"!
So I stepped into the CTOR of HTTPResponse and the member _reason was indeed initialized to "OK"...
Is there anything I could have messed up? stdlib versions? Any hint appreciated!!!
Thanks in advance for any help or suggestion!