cURL / Mailing Lists / curl-library / Single Mail


trying to link directly in executable *.x

From: CHEN Xiaolei A <>
Date: Wed, 18 Aug 2010 11:34:18 +0800

   After I succeeding in compiling libcurl-7.21.0, the "lib" directory
lists as follow:
  -rw-r--r-- 1 someone bjumts 1718756 Jul 1 17:42 libcurl.a
  -rwxr-xr-x 1 someone bjumts 1166 Jul 1 17:42
  lrwxrwxrwx 1 someone bjumts 16 Jul 1 17:42 ->
  lrwxrwxrwx 1 someone bjumts 16 Jul 1 17:42 ->
  -rwxr-xr-x 1 someone bjumts 1384988 Jul 1 17:42
  drwxr-xr-x 2 someone bjumts 4096 Jul 1 17:42 pkgconfig

 And under my design environment, I only use actual dynamic
lib( I wrote a demo program, it can compile and link
But before executing it, I use "ldd" command, it displays as follow:
> ldd FTPSession.x => (file not found) => (file not found) => /usr/lib/ => /lib/
so when the program is begin execution, the name it want to find to load
dynamic lib is -it's a symbol link refer to actual dynamic
lib( But I don't need that, I hope the name it want to
find is

My question is:

1) What should I do? If I need only actual dynamic
lib( after compiling and installing, and when executing
a program, it can find actual dynamic lib name(, not
the symbol link

2) As we known, libcurl compiling is depending on libssh2, so for my
question 1), Is there any change when compiling libssh2?

3) Does libcurl provide some interfaces to download a whole directory
recursively from a FTP server?

Thank you for your answer in advanced.



List admin:
Received on 2010-08-18