close
Blogtrottr
批踢踢實業坊 ask 板
 
[請問] libcurl疑問
Mar 14th 2015, 04:07, by KTR150Fi

作者KTR150Fi (I will come back soon .)

站內ask

標題[請問] libcurl疑問

時間Sat Mar 14 04:07:18 2015

請問 在DevC++環境下 將lib和include設定好 Linker也加入-lcurl 然後無法編譯 信息出現 undefined reference to `_imp__curl_easy_init' 請問這種狀況如何解決? 感謝 以下測試程式碼: /*Yahoo! 奇摩字典的資料傳送分析*/ #include #include #include int main(int argc, char *argv[]) { char POST[255] = "" ; CURL *curl; CURLcode res; curl = curl_easy_init(); sprintf(POST,"ei=UTF-8&p=%s",argv[1]); curl_easy_setopt(curl, CURLOPT_URL, "tw.dictionary.yahoo.com/search"); curl_easy_setopt(curl, CURLOPT_POSTFIELDS, POST); res = curl_easy_perform(curl); curl_easy_cleanup(curl); return 0; } -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 60.244.152.39 ※ 文章網址: https://www.ptt.cc/bbs/ask/M.1426277245.A.1E3.html

This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜

    kkosk8eq8o7k4 發表在 痞客邦 留言(0) 人氣()