curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: libcurl.a linker errors on XCode

From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Thu, 19 Aug 2021 11:30:48 +0200 (CEST)

On Thu, 19 Aug 2021, Anmol Mishra wrote:

> Using these flags allows for a build - -L/usr/local/Cellar/curl/7.78.0/lib
> -lcurl
>
> The problem is that -lcurl is probably bringing in the default system lib.
> And that is not something I want.

When you build your application you use a linker. If that linker doesn't do
what you want it to do, I don't see how that is a curl problem. That's a
linker problem.

-L and -l should point out the directory and the lib to use. Maybe your Xcode
needs some extra help to understand it needs to pick the static build and not
use the shared system one?

-- 
  / daniel.haxx.se
  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
  | https://curl.se/support.html
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2021-08-19