<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>wagavulin</author_name>
  <author_url>https://blog.hatena.ne.jp/wagavulin/</author_url>
  <blog_title>wagavulin's blog</blog_title>
  <blog_url>https://wagavulin.hatenablog.com/</blog_url>
  <categories>
    <anon>C/C++</anon>
  </categories>
  <description>C++とCが混在したプログラムを書くとときどき定義したはずの関数がundefinedだと言われることがある。そんなときの対処法とマングルの話。その前にまずはC言語だけの場合を考える。例えば以下のようなCのプログラムを書いてみる。 /* main.c */ #include &quot;foo.h&quot; int main(){ func1(); return 0; } /* foo.h */ #ifndef FOO_H void func1(); #endif /* foo.c */ #include &quot;foo.h&quot; #include &lt;stdio.h&gt; void func1(){ puts(&quot;ok&quot;); }…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwagavulin.hatenablog.com%2Fentry%2F2017%2F02%2F09%2F215036&quot; title=&quot;C++のマングルとextern &amp;quot;C&amp;quot; { - wagavulin&amp;#39;s blog&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>https://cdn-ak.f.st-hatena.com/images/fotolife/w/wagavulin/20170209/20170209214327.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-02-09 21:50:36</published>
  <title>C++のマングルとextern &quot;C&quot; {</title>
  <type>rich</type>
  <url>https://wagavulin.hatenablog.com/entry/2017/02/09/215036</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
