<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 1/17/2019 8:54 AM, Fred van Stappen
via cfe-dev wrote:<br>
</div>
<blockquote type="cite"
cite="mid:HE1P193MB01708CF088B9693F9C5D27ADB8830@HE1P193MB0170.EURP193.PROD.OUTLOOK.COM">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;}</style>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);"><span style="color:
rgb(33, 33, 33); font-family: "Segoe UI",
"Segoe UI Web (West European)", "Segoe
UI", -apple-system, BlinkMacSystemFont, Roboto,
"Helvetica Neue", sans-serif; font-size: 14.6667px;
background-color: rgb(255, 255, 255); display: inline
!important"><span><span style="color: rgb(0, 0, 0);
font-family: Verdana, Geneva, Helvetica, Arial,
sans-serif; font-size: 13.44px; background-color: rgb(255,
255, 255); display: inline !important">But for Windows,
using this (I use thw wine emulator on Linux):<span> </span></span><br
style="color: rgb(0, 0, 0); font-family: Verdana, Geneva,
Helvetica, Arial, sans-serif; font-size: 13.44px;
background-color: rgb(255, 255, 255)">
<br style="color: rgb(0, 0, 0); font-family: Verdana,
Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;
background-color: rgb(255, 255, 255)">
<span style="color: rgb(0, 0, 0); font-family: Verdana,
Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;
background-color: rgb(255, 255, 255); display: inline
!important">wine "/home/fred/.wine/drive_c/Program Files
(x86)/LLVM/bin/clang.exe"<span> </span></span><br
style="color: rgb(0, 0, 0); font-family: Verdana, Geneva,
Helvetica, Arial, sans-serif; font-size: 13.44px;
background-color: rgb(255, 255, 255)">
<span style="color: rgb(0, 0, 0); font-family: Verdana,
Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;
background-color: rgb(255, 255, 255); display: inline
!important">-L /home/fred/mlctest/ -I
/home/fred/mlctest/include/ -O3 -v -lgcc_eh<span> </span></span><br
style="color: rgb(0, 0, 0); font-family: Verdana, Geneva,
Helvetica, Arial, sans-serif; font-size: 13.44px;
background-color: rgb(255, 255, 255)">
<span style="color: rgb(0, 0, 0); font-family: Verdana,
Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;
background-color: rgb(255, 255, 255); display: inline
!important">-std=stdc <span> </span></span><br
style="color: rgb(0, 0, 0); font-family: Verdana, Geneva,
Helvetica, Arial, sans-serif; font-size: 13.44px;
background-color: rgb(255, 255, 255)">
<span style="color: rgb(0, 0, 0); font-family: Verdana,
Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;
background-color: rgb(255, 255, 255); display: inline
!important">-target i686-w64-mingw32 -dynamic -Wall
-Wextra<span> </span></span><br style="color: rgb(0, 0,
0); font-family: Verdana, Geneva, Helvetica, Arial,
sans-serif; font-size: 13.44px; background-color: rgb(255,
255, 255)">
<span style="color: rgb(0, 0, 0); font-family: Verdana,
Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;
background-color: rgb(255, 255, 255); display: inline
!important"> /home/fred/mlctest/my_pascal_llvm.bc -lgcc_s<span> </span></span><br
style="color: rgb(0, 0, 0); font-family: Verdana, Geneva,
Helvetica, Arial, sans-serif; font-size: 13.44px;
background-color: rgb(255, 255, 255)">
<span style="color: rgb(0, 0, 0); font-family: Verdana,
Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;
background-color: rgb(255, 255, 255); display: inline
!important"> -lstdc++ -lstdc -lgcc -lgcc_eh -lobjc
-lsupc++ -lgcov -liconv2 -lsspicli<span> </span></span><br
style="color: rgb(0, 0, 0); font-family: Verdana, Geneva,
Helvetica, Arial, sans-serif; font-size: 13.44px;
background-color: rgb(255, 255, 255)">
<span style="color: rgb(0, 0, 0); font-family: Verdana,
Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;
background-color: rgb(255, 255, 255); display: inline
!important"> -lwinpthread -lgdiplus -o
/home/fred/mlctest/my_pascal_llvm.exe<span> </span></span><br
style="color: rgb(0, 0, 0); font-family: Verdana, Geneva,
Helvetica, Arial, sans-serif; font-size: 13.44px;
background-color: rgb(255, 255, 255)">
<br style="color: rgb(0, 0, 0); font-family: Verdana,
Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;
background-color: rgb(255, 255, 255)">
<span style="color: rgb(0, 0, 0); font-family: Verdana,
Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;
background-color: rgb(255, 255, 255); display: inline
!important">There is that error (all other undefined
references are fixed)<span> </span></span><br
style="color: rgb(0, 0, 0); font-family: Verdana, Geneva,
Helvetica, Arial, sans-serif; font-size: 13.44px;
background-color: rgb(255, 255, 255)">
<br style="color: rgb(0, 0, 0); font-family: Verdana,
Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;
background-color: rgb(255, 255, 255)">
<span style="color: rgb(0, 0, 0); font-family: Verdana,
Geneva, Helvetica, Arial, sans-serif; font-size: 13.44px;
background-color: rgb(255, 255, 255); display: inline
!important">--> undefined reference to `stdout'<span> </span></span><br
style="color: rgb(0, 0, 0); font-family: Verdana, Geneva,
Helvetica, Arial, sans-serif; font-size: 13.44px;
background-color: rgb(255, 255, 255)">
</span></span></div>
</blockquote>
<p><br>
</p>
<p>On Windows, there is no symbol named stdout; the C standard only
requires a macro in stdio.h. You can use a small C wrapper like
the following to get a reference:</p>
<p><br>
</p>
<p>#include <stdio.h><br>
</p>
<p>FILE *getstdout() { return stdout; }<br>
</p>
<p><br>
</p>
<p>-Eli<br>
</p>
<pre class="moz-signature" cols="72">--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project</pre>
</body>
</html>