View Full Version : libcurl and Visual Studio 6
TheMysteriousStranger
05-18-2006, 03:29 PM
I know a lot of people around here use libcurl, so I'm hoping someone knows a solution to my problem. I'm trying to make a lib and dll file for use with VS6, and I followed the guide to build the lib/dll, but when trying to compile the supplied dsw file, I get tons of unidentifed token errors, all pointing into various .c files of the libcurl source. I have all the include directories set up as needed, and there are no errors about being unable to find or link to any files. It's almost as if half the source files are missing, but I've tried three different download locations and two different versions of libcurl.
Has anyone got libcurl to work in VS6? Or perhaps someone has a pre-compiled lib and dll they could send me?
Applewood
05-18-2006, 03:36 PM
I did once and it went out in a commercial product. It was a long time ago now but I do remember similar woes.
Looking in my archive, I see the fix I went with was to just stick all the source into my game build and fix up the PCH include system so rebuilding it needlessly didn't become a pita.
It is one of those "#ifdef _9BITCPU" type opensource things that if it doesn't work right first time, you can be pulling your hair out forever. Don't get my tone wrong though - it's a very impressive bit of kit once you get it working.
jetro
05-18-2006, 11:15 PM
The dsw I have compiles just fine (seems to be libcurl version 7.14.0) but my configuration makes just a static lib. Have you tried building a static library and just linking it?
Note that the static lib build defines macros CURL_STATICLIB and CURLLIB_EXPORTS.
If you don't need SSL/TSL, try to configure the build not to use those.. or if you need them, check out you have OpenSSL (or GnuTLS?) first.
TheMysteriousStranger
05-19-2006, 01:38 AM
The dsw I have compiles just fine (seems to be libcurl version 7.14.0) but my configuration makes just a static lib. Have you tried building a static library and just linking it?
That's what I'm trying to do - I just need to make the lib file and dll so that I can use curl in my game.
I don't need SSL, so I guess I can try disabling those, but I don't think that will be the problem. The errors are in the normal operations files (like ftp.c and connect.c)
edit:
After fighting with libcurl for what seems like forever, I think I'm gonna abandon it for wininet. I'll have to cross the libcurl bridge when I decide to port to mac.
jetro
05-19-2006, 01:47 PM
If you still want to give it a try (or decide to try again), I zipped up the one I am using with the above mentioned dsw, just in case you want to check it out and compare what might be the problem.
http://jet.ro/tmp/libcurl_7_14_0.zip
vBulletin v3.6.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.