Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7849665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T18:36:00+00:00 2026-06-02T18:36:00+00:00

I am using libcurl in a Mac project built and compiled on OS 10.7

  • 0

I am using libcurl in a Mac project built and compiled on OS 10.7 Lion. I can link to the dynamic library just fine, using either the -lcurl option in Other Linker Flags or by adding the library to my project. Everything works as its supposed to.

I’d like the application to work on OS 10.6 and 10.5 as well. I set the deployment target accordingly. When I go to run the application in one of those versions of the OS, I get a dyld error:

Library not loaded: /usr/lib/libcurl.4.dylib
Reason: Incompatible library version: X requires version 7.0.0 or later, but libcurl.4.dylib provides version 6.0.0.

It is a similar problem for Mac OS 10.5.

How can I link against the system’s libcurl library in Xcode on Mac OS 10.7 so that the application will also run on 10.6 and 10.5?

I’ve looked at a couple options:

  1. One is to change the Base SDK, as suggested in this post:
    Mac OS X libcurl dylib compatibility version If I do this, the application works fine. But this is not an option for me. I must be using the 10.7 SDK, so regressing to an older version of the SDK is not acceptable.

  2. I’ve tried weak linking against the library using the -weak_library /usr/lib/libcurl.dylib option in Other Linker Flags. The application launches but then crashes when I try to reference the libcurl symbols. However, I know it’s not a problem with incompatible code because it works when I change the Base SDK.

  3. I’ve tried dynamically loading the library within code using dlopen(“libcurl.dylib”, RTLD_LOCAL|RTLD_LAZY); The library seems to load, but I must then manually bind all the symbols I reference?

Surely there must be a way to do this. The libcurl library is installed on Mac OS 10.5, 10.6, and 10.7, but the application fails to use the available library on older versions of the Mac OS. How can I fix this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T18:36:03+00:00Added an answer on June 2, 2026 at 6:36 pm

    Some options:

    • Switch from libcurl to the Mac framework APIs (CFNetwork, NSURLConnection, etc.)
    • Build and package your own version of libcurl with your app rather than relying on the system library.
    • Copy or symlink the stub library from the SDK corresponding to your deployment target and link to it with an explicit path.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just downloaded libcurl and built it on Windows, using VC2008. It came with a
I wrote multi-threaded FTP uploader on C#.NET using libcurl.NET. Everything works fine on my
I wanna write a little c++ program using libcurl. It's for a school project
I am using libcurl in my project and it depends on openssl and bunch
I can't figure out how to properly add a static libcurl library to my
How can I view the full request headers, including post data , using libcurl
I'm using libcurl in a Win32 C++ application. I have the curllib.vcproj project added
my first question here: I am having trouble using libcURL in a c++ project.
I'm using libcurl (HTTP transfer library) with C++ and trying to download files from
I am using libcurl which depends on OpenSSL thus I need to link with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.