curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Intel Fortran Compilation error related to libcurl.a

From: Daniel Stenberg <daniel_at_haxx.se>
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
application.

> 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!

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2018-04-11