So, I was working on an application today that needed to download a file from a server as part of its functionality. I initially looked at libcurl for this, but was really put off by the idea of trying to use a C library in C++; I really wanted something that used C++ calling conventions and didn't require a string of mallocs for me to store the data as a string. Suddenly, I remembered working with tntnet, and thought, "tntnet's a web app, I bet cxxtools has an HTTP request function in it!" Sure enough, it did, and it was amazingly simple to use! I was, as you might imagine, ecstatic. I went about following the code in the sample, exploring the source code, and so on until I'd put together a simple function to download a file and output it to the console, compiled it, and ran it... CRASH.
What was odd about this crash, though, is that it happened instantly when the process launched. I didn't get to the point of actually doing the HTTP request at all. But, I figured, it had to be something to do with that, since it was the only change I made. So I commented it out, compiled, and tried again. CRASH. What? I commented out the #include statements, too. CRASH. As it turns out, the process crashes any time I compile it with -lcxxtools-http, even if I don't make a single call to it! After realizing this, I wondered if it was something specific to cxxtools-http, or if it was cxxtools in general. I linked to libcxxtools. Crash again as soon as I started the process. I'm at a complete loss! Has anyone else experienced this? Does anyone even know where I could begin figuring out what's causing it? Is it something in my code, or is there a problem with libcxxtools-http? Or do I need to link something else in there, too? Could it have anything to do with the fact that cxxtools installed itself to /usr/local/lib when everything else on my system is in /usr/lib? I tried (on a whim) adding a -L/usr/local/lib in my makefile, but it didn't help. For the record, I'm using cxxtools 2.0, which I downloaded, compiled, and installed from source, on Ubuntu Lucid. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Tntnet-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tntnet-general
