Re: [問題] 關於openssl使用
※ [本文轉錄自 C_and_CPP 看板]
作者: chaly77714 (Chaly) 看板: C_and_CPP
標題: Re: [問題] 關於openssl使用
時間: Mon Dec 8 13:28:40 2008
昨天找到了libssl.a
把他放到了/usr/local的目錄下後....
/usr/bin/ld: cannot find -lssl
collect2: ld 回傳 1
這個錯誤訊息就不見了...
但卻又出現另一個問題...
/usr/local/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func':
dso_dlfcn.c:(.text+0x331): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x410): undefined reference to `dlerror'
/usr/local/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var':
dso_dlfcn.c:(.text+0x491): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x568): undefined reference to `dlerror'
/usr/local/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload':
dso_dlfcn.c:(.text+0x5d3): undefined reference to `dlclose'
/usr/local/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':
dso_dlfcn.c:(.text+0x6b7): undefined reference to `dlopen'
dso_dlfcn.c:(.text+0x728): undefined reference to `dlclose'
dso_dlfcn.c:(.text+0x76d): undefined reference to `dlerror'
collect2: ld 回傳 1
感覺是/usr/local/lib 裡面的libcrypto.a檔案的問題...
去那個目錄下...那個.a檔...
不知道該怎麼解決這個問題...
麻煩版上得神手幫忙一下>/////<
:
: 我今天在使用openssl撰寫一個程式..
:
: 在ubuntu 8.10下...
:
: 要compile的時候....
:
: 我輸入以下指令進行compile...
:
: g++ ssl_cli.cpp -L/home/chaly77714/openssl/include
: -I/home/chaly77714/openssl/incl
: ude/ -l ssl -l crypto -o srv
:
: 卻出現以下錯誤訊息
:
: /usr/bin/ld: cannot find -lssl
: collect2: ld 回傳 1
:
: 不知道是哪裡出問題了...
: 麻煩各位解決@@?
:
: --
: ※ 發信站: 批踢踢實業坊(ptt.cc)
: ◆ From: 140.138.236.17
: 推 LPH66:你沒有libssl.a 12/07 23:03
: → chaly77714:不好意思??該怎麼製作啊??? 12/07 23:12
: → realmeat:去網路上抓...或是拿source code編一個 12/08 00:49
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.138.236.17
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.138.252.103
→
12/08 20:12, , 1F
12/08 20:12, 1F
LinuxDev 近期熱門文章
PTT數位生活區 即時熱門文章