Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Jul 30, 2007 Jul 30, 2007
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?
TOPICS
SDK
1.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 30, 2007 Jul 30, 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 31, 2007 Jul 31, 2007
Thank you Jim.
In the MAC OSX, I couldnot find libcurl.lib. I can just find libcurl.dylib.
Is that it?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 31, 2007 Jul 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 08, 2017 Nov 08, 2017
LATEST

how to find libcurl.lib?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines