curl-library
Re: Intel Fortran Compilation error related to libcurl.a
Date: Thu, 5 Apr 2018 00:23:23 +0200 (CEST)
On Wed, 4 Apr 2018, Lianyuan Zheng - NOAA Federal wrote:
> However, when I compile the same code with option -static using the
> following command:
>
> ifort -static -o convert2 convert2.f -I/home/net/zheng/include
> -I/home/net/zheng/include/curl -L/home/net/zheng/lib -lnetcdff -lnetcdf
> -lhdf5_hl -lhdf5 -lz -lcurl
This is asking to link with a static libcurl. When linking statically you must
provide all other dependency libs as well on the link command line. Looking at
those errors, you need at least -ldl, -lssl, -lcrypto and -lz (again). Maybe
something else too.
When you buid curl, it generates curl-config and "curl-config --static-libs"
is made to generate the list of libs to use in the link line. That might
help. It can be a really extensive list.
-- / daniel.haxx.se ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2018-04-05