Skip to main content
Participating Frequently
July 31, 2007
Question

how to add lib. in my project - I'd like to use libcurl.

  • July 31, 2007
  • 4 replies
  • 1006 views
I was told that libcurl was good for getting http data.
So I spend 2 days finding out how to build with libcurl source in Mac OSX.
Oh my gosh!
I found out that libcurl was included already.
Therefore, The only thing I have to do at this time is to include this library into my project and use it.
But I am not good at codewarrior and Mac OS while I am good at MSVC.
Could you tell me some advice if you may not feel hard to describe it?
This topic has been closed for replies.

4 replies

charu72529468
Participant
November 8, 2017

how to find libcurl.lib?

Inspiring
July 31, 2007
ykish,

The dylib is a dynamic library. If there is a libcurl.lib file, that's the one you are looking for.

I wanted to use a static library (so the plug-in would not be dependent on any external files), so I created a CodeWarrior project and complied libcurl into a static library. I don't have a lot of experience with libraries, but what I created seemed to work for me.

If you want, I can send you the CodeWarrior project and source that I used. It is an older version of libCURL (a year or two), but you can probably just substitute the newer source files for the existing ones if you want the latest version. If you are interested, please send me an email and I'll package it up and send it to you. You can find my email address by clicking my name at the top of this message.

Cheers!

-- Jim
_ykish_Author
Participating Frequently
July 31, 2007
Thank you Jim.
In the MAC OSX, I couldnot find libcurl.lib. I can just find libcurl.dylib.
Is that it?
Inspiring
July 31, 2007
Hi ykish,

I have used libcurl.lib in a Mac ID CS2 plug-in, but it was a while ago. I believe it was really easy to do.

Just add the file, "libcurl.lib" to your CodeWarrior project. Choose Project > Add Files. You will want to add it to both the Release and Debug targets.

To use the library, just #include the "curl.h" header file to the c++ file that contains your CURL calls.

As I said, it was a while ago. The hardest part, as I remember, was getting the lib file created. I used a static library version of libcurl.

I hope this helps!

-- Jim