{"id":245,"date":"2012-03-24T00:21:54","date_gmt":"2012-03-23T16:21:54","guid":{"rendered":"http:\/\/newbiecoder.0ginr.com\/blog\/?p=245"},"modified":"2012-03-24T02:49:29","modified_gmt":"2012-03-23T18:49:29","slug":"mpc-0-8-2%e5%92%8cgcc-4-6-2-%e7%9a%84%e4%b8%80%e5%a4%84%e5%85%bc%e5%ae%b9%e6%80%a7%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/newbiecoder.0ginr.com\/blog\/?p=245","title":{"rendered":"MPC 0.8.2\/0.9\u548cGCC 4.6.2 \u7684\u4e00\u5904\u517c\u5bb9\u6027\u95ee\u9898"},"content":{"rendered":"<p>\u5728\u7528GCC 4.6.2\u7f16\u8bd1MPC 0.8.2\/0.9\u7684\u65f6\u5019\uff08\u52a8\u6001\u94fe\u63a5\uff09\uff0c\u5728configure\u7684\u65f6\u5019\u51fa\u73b0\u8fd9\u6837\u7684\u9519\u8bef\uff1a<\/p>\n<p><pre><code class=\"preserve-code-formatting\">checking for __gmpz_init in -lgmp... no\nconfigure: error: libgmp not found or uses a different ABI.<\/code><\/pre><\/p>\n<p>\u5728config.log\u91cc\u9762\u53ef\u4ee5\u770b\u5230\u8fd9\u6837\u7684\u4fe1\u606f\uff1a<\/p>\n<p><pre><code class=\"preserve-code-formatting\">configure:10833: checking for __gmpz_init in -lgmp\nconfigure:10858: gcc -std=gnu99 -o conftest.exe -m32 -O2 -pedantic -fomit-frame-pointer -mtune=pentiumpro -march=pentiumpro -I\/mingwlibs\/include -I\/mingwlibs\/include  -L\/mingwlibs\/lib -L\/mingwlibs\/lib  -no-undefined conftest.c -lgmp   &gt;&amp;5\ngcc.exe: error: unrecognized option &#039;-no-undefined&#039;\nconfigure:10858: $? = 1\nconfigure: failed program was:\n| \/* confdefs.h *\/\n| #define PACKAGE_NAME &quot;mpc&quot;\n| #define PACKAGE_TARNAME &quot;mpc&quot;\n| #define PACKAGE_VERSION &quot;0.8.2&quot;\n| #define PACKAGE_STRING &quot;mpc 0.8.2&quot;\n| #define PACKAGE_BUGREPORT &quot;mpc-discuss@lists.gforge.inria.fr&quot;\n| #define PACKAGE_URL &quot;&quot;\n| #define PACKAGE &quot;mpc&quot;\n| #define VERSION &quot;0.8.2&quot;\n| #define HAVE_SYS_TYPES_H 1\n| #define HAVE_SYS_STAT_H 1\n| #define HAVE_STDLIB_H 1\n| #define HAVE_STRING_H 1\n| #define HAVE_MEMORY_H 1\n| #define HAVE_STRINGS_H 1\n| #define HAVE_INTTYPES_H 1\n| #define HAVE_STDINT_H 1\n| #define HAVE_UNISTD_H 1\n| #define LT_OBJDIR &quot;.libs\/&quot;\n| \/* end confdefs.h.  *\/\n| \n| \/* Override any GCC internal prototype to avoid an error.\n|    Use char because int might match the return type of a GCC\n|    builtin and then its argument prototype would still apply.  *\/\n| #ifdef __cplusplus\n| extern &quot;C&quot;\n| #endif\n| char __gmpz_init ();\n| int\n| main ()\n| {\n| return __gmpz_init ();\n|   ;\n|   return 0;\n| }\nconfigure:10867: result: no\nconfigure:10872: error: libgmp not found or uses a different ABI.\n<\/code><\/pre><\/p>\n<p>\u5176\u5b9e\u8fd9\u513f\u7684\u53c2\u6570-no-undefined\u672c\u8be5\u4f20\u7ed9\u94fe\u63a5\u5668\u7684\uff0c\u6240\u4ee5\u76f4\u63a5\u628aconfigure\u91cc\u9762\u884c#4457\uff080.8.2\uff09\u6216#4501\uff080.9\uff09\u4ece<\/p>\n<p><code class=\"preserve-code-formatting\">     LDFLAGS=&quot;$LDFLAGS -no-undefined&quot;<\/code><\/p>\n<p>\u6539\u6210<\/p>\n<p><code class=\"preserve-code-formatting\">     LDFLAGS=&quot;$LDFLAGS -Wl,-no-undefined&quot;<\/code><\/p>\n<p>\u5c31\u597d\u4e86\u3002<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>\u66f4\u591a\u4fe1\u606f\uff1a<a href=\"http:\/\/lists.gnu.org\/archive\/html\/libtool\/2011-03\/msg00015.html\">http:\/\/lists.gnu.org\/archive\/html\/libtool\/2011-03\/msg00015.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u7528GCC 4.6.2\u7f16\u8bd1MPC 0.8.2\/0.9\u7684\u65f6\u5019\uff08\u52a8\u6001\u94fe\u63a5\uff09\uff0c\u5728configure\u7684\u65f6\u5019\u51fa\u73b0\u8fd9\u6837\u7684\u9519 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-245","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/newbiecoder.0ginr.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/245","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/newbiecoder.0ginr.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/newbiecoder.0ginr.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/newbiecoder.0ginr.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/newbiecoder.0ginr.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=245"}],"version-history":[{"count":4,"href":"https:\/\/newbiecoder.0ginr.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/245\/revisions"}],"predecessor-version":[{"id":252,"href":"https:\/\/newbiecoder.0ginr.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/245\/revisions\/252"}],"wp:attachment":[{"href":"https:\/\/newbiecoder.0ginr.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/newbiecoder.0ginr.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/newbiecoder.0ginr.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}