如何在库中禁用.eh符号的创建

时间:2016-02-03 11:12:41

标签: c gcc ld

我已经构建了一个可执行文件,将它与curl和其他自定义库相关联。虽然可执行文件已成功构建,但我收到以下警告:

ld: warning, can't find matching function for eh symbol _Curl_urldecode.eh
ld: warning, can't find matching function for eh symbol _curl_free.eh
ld: warning, can't find matching function for eh symbol _Curl_blockread_all.eh
ld: warning, can't find matching function for eh symbol _Curl_SOCKS4.eh
ld: warning, can't find matching function for eh symbol _Curl_SOCKS5.eh
ld: warning, can't find matching function for eh symbol _Curl_http_setup_conn.eh
ld: warning, can't find matching function for eh symbol _Curl_http.eh
ld: warning, can't find matching function for eh symbol _Curl_http_done.eh
ld: warning, can't find matching function for eh symbol _Curl_http_connect.eh

这些似乎是一些有助于调试和类似的符号,但我不想要这些符号以及此类警告。我阅读了一些帖子,并在构建可执行文件时传递了以下CFLAGS

-fno-asynchronous-unwind-tables -dead_strip

但它没有用。关于这些.eh符号的任何线索以及此符号的函数含义。我只想抑制这些警告。

0 个答案:

没有答案