<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div style="" class="markdown-here-wrapper"
      data-md-url="Thunderbird">
      <p style="margin: 1.2em 0px ! important;">Hello Mercury Users,</p>
      <p style="margin: 1.2em 0px ! important;">I’m using the MinGW
        build for Mercury, and I just ran through the hello world
        example. After running:</p>
      <p style="margin: 1.2em 0px ! important;"><code style="font-size:
          0.85em; font-family:
          Consolas,Inconsolata,Courier,monospace;margin: 0px 0.15em;
          padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid
          rgb(234, 234, 234); background-color: rgb(248, 248, 248);
          border-radius: 3px 3px 3px 3px; display: inline;">mmc --make
          hello</code></p>
      <p style="margin: 1.2em 0px ! important;">I get this error:</p>
      <pre style="font-size: 0.85em; font-family: Consolas,Inconsolata,Courier,monospace;font-size: 1em; line-height: 1.2em;margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas,Inconsolata,Courier,monospace;margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid rgb(234, 234, 234); background-color: rgb(248, 248, 248); border-radius: 3px 3px 3px 3px; display: inline;white-space: pre; overflow: auto; border-radius: 3px 3px 3px 3px; border: 1px solid rgb(204, 204, 204); padding: 0.5em 0.7em; display: block ! important;display: block; overflow-x: auto; padding: 0.5em; color: rgb(51, 51, 51); background: none repeat scroll 0% 0% rgb(248, 248, 248);" class="hljs language-sh">$ mmc --make hello                                                                                                                         <span style="color: rgb(0, 128, 128);" class="hljs-number">14</span>-<span style="color: rgb(0, 128, 128);" class="hljs-number">10</s
pan>-<span style="color: rgb(0, 128, 128);" class="hljs-number">07</span> <span style="color: rgb(0, 128, 128);" class="hljs-number">17</span>:<span style="color: rgb(0, 128, 128);" class="hljs-number">29</span>:<span style="color: rgb(0, 128, 128);" class="hljs-number">00</span>
Making Mercury\int3s\hello.int3
Making Mercury\ints\hello.int
Making Mercury\cs\hello.c
Making Mercury\os\hello.o
Mercury\cs\hello.c: In function ‘hello_module0’:
Mercury\cs\hello.c:<span style="color: rgb(0, 128, 128);" class="hljs-number">79</span>:<span style="color: rgb(0, 128, 128);" class="hljs-number">10</span>: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  MR_r1 = (MR_Word) MR_string_const(<span style="color: rgb(221, 17, 68);" class="hljs-string">"Hello, World!\n"</span>, <span style="color: rgb(0, 128, 128);" class="hljs-number">14</span>);
          ^
<span style="color: rgb(221, 17, 68);" class="hljs-string">'mfiltercc'</span> is not recognized as an internal or external command,
operable program or batch file.
Error: system command received signal <span style="color: rgb(0, 128, 128);" class="hljs-number">1</span>.
** Error making `Mercury\os\hello.o<span style="color: rgb(221, 17, 68);" class="hljs-string">'.</span>
</code></pre>
      <p style="margin: 1.2em 0px ! important;">The above was inside
        Cygwin, I tried again in cmd and I got a similar thing:</p>
      <pre style="font-size: 0.85em; font-family: Consolas,Inconsolata,Courier,monospace;font-size: 1em; line-height: 1.2em;margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas,Inconsolata,Courier,monospace;margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid rgb(234, 234, 234); background-color: rgb(248, 248, 248); border-radius: 3px 3px 3px 3px; display: inline;white-space: pre; overflow: auto; border-radius: 3px 3px 3px 3px; border: 1px solid rgb(204, 204, 204); padding: 0.5em 0.7em; display: block ! important;display: block; overflow-x: auto; padding: 0.5em; color: rgb(51, 51, 51); background: none repeat scroll 0% 0% rgb(248, 248, 248);" class="hljs language-sh">C:\Users\CMCDragonkai\Projects\Language-Learning\mercury\examples>C:\mercury-<span style="color: rgb(0, 128, 128);" class="hljs-number">14</span>.
<span style="color: rgb(0, 128, 128);" class="hljs-number">01</span>-mingw\bin\mmc.bat hello
hello.c: In function <span style="color: rgb(221, 17, 68);" class="hljs-string">'hello_module0'</span>:
hello.c:<span style="color: rgb(0, 128, 128);" class="hljs-number">79</span>:<span style="color: rgb(0, 128, 128);" class="hljs-number">10</span>: warning: cast from pointer to integer of different size [-Wpointe
r-to-int-cast]
  MR_r1 = (MR_Word) MR_string_const(<span style="color: rgb(221, 17, 68);" class="hljs-string">"Hello, World!\n"</span>, <span style="color: rgb(0, 128, 128);" class="hljs-number">14</span>);
          ^
<span style="color: rgb(221, 17, 68);" class="hljs-string">'mfiltercc'</span> is not recognized as an internal or external command,
operable program or batch file.
Error: system command received signal <span style="color: rgb(0, 128, 128);" class="hljs-number">1</span>.

C:\Users\CMCDragonkai\Projects\Language-Learning\mercury\examples>
</code></pre>
      <p style="margin: 1.2em 0px ! important;">What’s the problem here?</p>
      <p style="margin: 1.2em 0px ! important;">Thanks,<br>
        Roger</p>
      <div
title="MDH:SGVsbG8gTWVyY3VyeSBVc2Vycyw8YnI+PGJyPkknbSB1c2luZyB0aGUgTWluR1cgYnVpbGQgZm9yIE1lcmN1cnksIGFuZCBJIGp1c3QgcmFuIHRocm91Z2ggdGhlIGhlbGxvIHdvcmxkIGV4YW1wbGUu
IEFmdGVyIHJ1bm5pbmc6PGJyPjxicj5gbW1jIC0tbWFrZSBoZWxsb2A8YnI+PGJyPkkgZ2V0IHRo
aXMgZXJyb3I6PGJyPjxicj5gYGBzaDxicj4kIG1tYyAtLW1ha2UgaGVsbG/CoMKgwqDCoMKgwqDC
oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKg
wqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC
oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKg
wqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqAg
MTQtMTAtMDcgMTc6Mjk6MDA8YnI+TWFraW5nIE1lcmN1cnl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