[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[UDUNITS #ALQ-202022]: compiling udunits2 with XML


> A few more tests confirm that it works just as well to refer just once to the 
> udunits2 and expat libraries,
> but this must be before all the netcdf libraries (and after my local 
> 'cdcnetcdf' library), as in
> cc nc.transfer.ascii.c -L/home/rdanielson/prog/include.netcdf/lib -lcdcnetcdf 
> -L/home/rdanielson/soft/udunits/lib -ludunits2 -lexpat 
> -L/home/rdanielson/soft/netcdf/lib -lnetcdf -L/usr/lib64 -lcurl 
> -L/usr/kerberos/lib -L/usr/kerberos/lib64 -lssl -lcrypto -lgssapi_krb5 -lkrb5 
> -lcom_err -lk5crypto -lresolv -ldl -lz -lgssapi_krb5 -lkrb5 -lk5crypto 
> -lcom_err -lresolv -L/usr/kerberos/lib -L/usr/kerberos/lib64 -lidn -lssl 
> -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv 
> -ldl -lz -lz -lm

I'm surprised that you can't put the netCDF, UDUNITS, and expat library 
references just near the end of the link command.

I'm glad you found a way to build your application, though.

> Cheers again,
> Rick

Steve Emmerson

Ticket Details
Ticket ID: ALQ-202022
Department: Support UDUNITS
Priority: Normal
Status: Closed

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.