<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hidemon</author_name>
  <author_url>https://blog.hatena.ne.jp/hidemon/</author_url>
  <blog_title>hidemonのブログ</blog_title>
  <blog_url>https://hidemon.hatenadiary.jp/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>大昔からある話だが，復習のためにやってみた．STLのlistをCから使ってみる．ポイントは， C++ でCから呼び出すためのラッパを書く ラッパ関数のプロトタイプ宣言は extern &quot;C&quot; で宣言する このとき，C++で読まれる場合とCから読まれる場合を__cplusplusで切り分ける． リンクはC++のコンパイルドライバを使う ラッパのヘッダファイル まず，ラッパのヘッダファイルlist_wrapper.hを書く．list_int_t は void * としている．C++のコンパイラでは__cplusplusが定義されているので，extern &quot;C&quot; が有効になる．これはC++での関数名…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhidemon.hatenadiary.jp%2Fentry%2F20081228%2F1230451320&quot; title=&quot;CからC++のライブラリを呼び出す - hidemonのブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-12-28 17:02:00</published>
  <title>CからC++のライブラリを呼び出す</title>
  <type>rich</type>
  <url>https://hidemon.hatenadiary.jp/entry/20081228/1230451320</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
