{"id":1631,"date":"2013-03-19T19:44:51","date_gmt":"2013-03-19T11:44:51","guid":{"rendered":"http:\/\/www.hyzgame.com.cn\/?p=1631"},"modified":"2013-03-19T19:47:19","modified_gmt":"2013-03-19T11:47:19","slug":"%e5%85%b3%e4%ba%8e-undefined-reference-to-vtable-for-%e3%80%82%e3%80%82%e3%80%82%e3%80%82%e3%80%82%e3%80%82%e3%80%82%e3%80%82%e7%9a%84%e9%94%99%e8%af%af%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"http:\/\/www.hyzgame.com\/?p=1631","title":{"rendered":"\u5173\u4e8e undefined reference to `vtable for \u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002&#8217;\u7684\u9519\u8bef\u89e3\u51b3\u65b9\u6cd5"},"content":{"rendered":"<p>\u6700\u8fd1\u78b0\u4e0a\u8fd9\u4e2a\u95ee\u9898\uff0c\u65e0\u8bbaGNU C\/C++ 4.7.2\u8fd8\u662fLLVM Clang 3.2\u90fd\u4f1a\u62a5\uff0c\u5728\u7f51\u4e0a\u67e5\u4e86\u8bb8\u591a\u8d44\u6599\uff0c\u57fa\u672c\u5185\u5bb9\u4e00\u6837\uff0c\u4f46\u4e5f\u57fa\u672c\u90fd\u6ca1\u6709\u771f\u6b63\u547d\u4e2d\u8fd9\u4e2a\u9519\u8bef\u7684\u8d77\u56e0\u3002<\/p>\n<p>\u8fd9\u53e5\u82f1\u6587\u7684\u672c\u610f\u662f\u65e0\u6cd5\u4ea7\u751f\u865a\u62df\u51fd\u6570\u6620\u5c04\u8868\uff0c\u90a3\u4e48\u539f\u56e0\u80af\u5b9a\u5c31\u662f\u6709\u865a\u62df\u7684\u51fd\u6570\u4e0d\u5b58\u5728\u3002\u4f46\u4e3a\u4ec0\u4e48\u4f1a\u4e0d\u5b58\u5728\uff1f\u90a3\u5f53\u7136\u662f\u6ca1\u6709\u5199\u4e86\u3002<\/p>\n<p>\u6240\u4ee5\uff0c\u89e3\u51b3\u7684\u529e\u6cd5\u5c31\u662f\u68c0\u6d4b\u4f60\u62a5\u9519\u7684\u7c7b\u4e2d\uff0c\u662f\u5426\u771f\u6b63\u7684\u5b9e\u73b0\u4e86\u6240\u6709\u5728\u672c\u7c7b\u4e2d\u5b9a\u4e49\u7684\u6d3e\u751f\u51fd\u6570\u3002\u5982\u679c\u4ec5\u5728.h\u4e2d\u5b9a\u4e49\uff0c\u800c\u6ca1\u6709\u5728.cpp\u4e2d\u5b9e\u73b0\uff0c\u5c31\u4f1a\u62a5\u8fd9\u4e2a\u9519\u8bef\u3002<\/p>\n<p>\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u4ee5\u53ca\u4ee3\u7801\u4e2d\uff0cB\u7c7b\u5c31\u4f1a\u62a5\u5982\u4e0a\u9519\u8bef\u3002<\/p>\n<p>class Base<br \/>\n{<br \/>\n virtual void func();<br \/>\n};<\/p>\n<p>class A:public Base<br \/>\n{<br \/>\n\/\/\u6ca1\u6709\u5b9a\u4e49\uff0c\u4f7f\u7528\u57fa\u7c7b\u7684<br \/>\n};<\/p>\n<p>class B:public Base<br \/>\n{<br \/>\n void func(); \/\/\u5b9a\u4e49\u4e86\uff0c\u4f46\u6ca1\u6709\u5b9e\u73b0<br \/>\n};<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u78b0\u4e0a\u8fd9\u4e2a\u95ee\u9898\uff0c\u65e0\u8bbaGNU C\/C++ 4.7.2\u8fd8\u662fLLVM Clang 3.2\u90fd\u4f1a\u62a5\uff0c\u5728\u7f51\u4e0a\u67e5\u4e86\u8bb8\u591a\u8d44\u6599 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1631","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=\/wp\/v2\/posts\/1631","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1631"}],"version-history":[{"count":3,"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=\/wp\/v2\/posts\/1631\/revisions"}],"predecessor-version":[{"id":1633,"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=\/wp\/v2\/posts\/1631\/revisions\/1633"}],"wp:attachment":[{"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1631"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1631"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hyzgame.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1631"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}