<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0"><span style="font-size: 12pt;">clang -xc++ -c 1.c 2.c</span><br>
</p>
<div id="Signature">
<div>clang -xc++ main.c 1.o 2.o</div>
<div>1.o:1:1: error: source file is not valid UTF-8</div>
<br>
</div>
<div id="Signature">Would be nice, albeit I realize kinda proby/non-deterministic/big, if .o files were recognized and -xc++ did not apply to them.</div>
<div id="Signature"><br>
</div>
<div id="Signature">I'm converting C to C++ and don't want to rename files, at least at this point, maybe forever.</div>
<div id="Signature"><br>
</div>
<div id="Signature">For now I've compromised and main remains C. It is much smaller than the various libraries, so -xc++ is almost a complete solution.</div>
<div id="Signature"><br>
</div>
<div id="Signature"> Thank you,</div>
<div id="Signature"> - Jay</div>
<div id="Signature"><br>
</div>
</div>
</body>
</html>