<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Kureduki_Maari</author_name>
  <author_url>https://blog.hatena.ne.jp/Kureduki_Maari/</author_url>
  <blog_title>c4se記：さっちゃんですよ☆</blog_title>
  <blog_url>https://c4se.hatenablog.com/</blog_url>
  <categories>
    <anon>Programming</anon>
    <anon>D lang</anon>
    <anon>C lang</anon>
  </categories>
  <description>Makefileも書いたことが無い人間ですので、手間取りました。dmcでCをobjにして、dmdでDと一緒にリンクするだけです。 DMDは入れてあるとします。 /* playinj.c */ int sum(int l, int r) { return l + r; } 此う云う何の益も無いC言語の関数を、D言語から呼びたいとします。Cをオブジェクトファイルにします。 C:/D/dm/bin/dmc -c playinj.c -cオプションを使います。playinj.objが出来ました。 D言語の、益体も無いmainプログラムを書きます。 // playworks.d extern (C) {…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fc4se.hatenablog.com%2Fentry%2F2012%2F05%2F13%2F191102&quot; title=&quot;D言語からC言語のコードを呼び出す #dlang - c4se記：さっちゃんですよ☆&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>2012-05-13 19:11:02</published>
  <title>D言語からC言語のコードを呼び出す #dlang</title>
  <type>rich</type>
  <url>https://c4se.hatenablog.com/entry/2012/05/13/191102</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
