curl - Static linking libcurl using c -


I am using Libcurl on my Linux machine with C and GNU Compiler. The application also uses OpenSSL libraries and some other libraries. I am trying to link libraries permanently, except for the link with other libraries works fine.

I am trying to compile as below.

  GCC-static -i-o test test.c -lz -lssl -lcrypto -lcurl   

Am I doing something wrong? Is there any way to force the stable link to some libraries (for example libc)?

Libcurl is the only link against tons of most other libraries, most of which Your compile is not included in the command line For example, against my link (on Debian Squeeze):

  • libc
  • libcom_err
  • libcrypto < Libidl
  • libgcrypt
  • libgpg-error
  • libgssapi_krb5
  • libidn
  • libk5crypto < Libqrb5
  • libkrb5
  • liblber-2.4
  • libldap_r-2.4
  • libpthread
  • Libresc
  • Liberty
  • Libscall 2
  • Libsec 2
  • Libs
  • , Or otool-L on Darwin.)

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -