curl / Mailing Lists / curl-library / Single Mail


Re: Intel Fortran Compilation error related to libcurl.a

From: Daniel Stenberg <>
Date: Wed, 11 Apr 2018 11:00:32 +0200 (CEST)

On Tue, 10 Apr 2018, Lianyuan Zheng - NOAA Federal wrote:

> Based on your suggestion, I use the following command to compile the code:
> 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 -L/usr/lib -ldl -lcrypt

This is not a curl problem though. This is you building and linking your

> It seems how to provide the order of libraries is necessary.

Yes, typically the order of the libs is important when you link statically.
Yet another reason to reconsider your choice to use static libs if you ask me!

Received on 2018-04-11