{"published":"2005-12-15 00:00:00","blog_title":"memologue","url":"https://yupo5656.hatenadiary.org/entry/20051215/p1","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","height":"190","image_url":null,"version":"1.0","title":" C++\u4f8b\u5916\u304cC\u306e\u30b3\u30fc\u30c9\u4e2d\u3092\u901a\u904e\u3059\u308b\u3068\u30af\u30e9\u30c3\u30b7\u30e5\u3059\u308b\u4ef6","description":"wo\u3055\u3093\u306b\u6559\u3048\u3066\u3044\u305f\u3060\u3044\u305f\u4ef6 (http://d.hatena.ne.jp/w_o/20051203#p3)\u3001\u9045\u304f\u306a\u308a\u307e\u3057\u305f\u304c\u3001\u73fe\u8c61\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002\u6b21\u306e\u30b3\u30fc\u30c9\u3067\u518d\u73fe\u3057\u307e\u3059\u306d\u3002 $ cat a.cpp extern \"C\" { void b(); void a() { throw 123; } } int main() { try { b(); } catch(...) {} } $ cat b.c void a(); void b() { a(); } \u5b9f\u884c\u3059\u308b\u3068\u3053\u306e\u3088\u3046\u306b\u30af\u30e9\u30c3\u30b7\u30e5\u3057\u307e\u3059\u3002 $ gcc -c b.c ; g++ a.cpp b.o ; ./a.out terminate cal\u2026","blog_url":"https://yupo5656.hatenadiary.org/","author_name":"yupo5656","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyupo5656.hatenadiary.org%2Fentry%2F20051215%2Fp1\" title=\" C++\u4f8b\u5916\u304cC\u306e\u30b3\u30fc\u30c9\u4e2d\u3092\u901a\u904e\u3059\u308b\u3068\u30af\u30e9\u30c3\u30b7\u30e5\u3059\u308b\u4ef6 - memologue\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["C++"],"author_url":"https://blog.hatena.ne.jp/yupo5656/","width":"100%","type":"rich"}