<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks Brad!<br>
<br>
After fiddling with it a bit more, found that it was a Windows path issue, as I have spaces in the compiler and file path, so I added quotes around all of the arguments after the first path argument.<br>
I was using the following command:<br>
<blockquote style="margin-top: 0px; margin-bottom: 0px;">castxml --castxml-cc-gnu-c "C:/Path/To/Compiler/arm-none-eabi-gcc" "C:/Path/To/C/File/main.c" "--castxml-output=1" "-o out.xml"<br>
</blockquote>
Once I removed the quotes from the '--castxml-output' and '-o' flags, it started working.<br>
<br>
Thanks!<br>
<blockquote style="margin-top: 0px; margin-bottom: 0px;"></blockquote>
<blockquote style="margin-top: 0px; margin-bottom: 0px;"><br>
</blockquote>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Brad King <brad.king@kitware.com><br>
<b>Sent:</b> Wednesday, May 9, 2018 2:58 PM<br>
<b>To:</b> Matic Kukovec; castxml@public.kitware.com<br>
<b>Subject:</b> Re: [CastXML] Beginner usage</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">On 05/09/2018 08:06 AM, Matic Kukovec wrote:<br>
> I am giving castxml the '--castxml-output=1' and '-o myfile.xml' flags,<br>
> but the output file is always the name of the parsed file with the '.xml'<br>
> extension.  Am I doing something wrong?<br>
<br>
This works for me:<br>
<br>
    castxml foo.cxx --castxml-output=1 -o myout.xml<br>
<br>
No `foo.xml` is written.  `myout.xml` is written.<br>
<br>
If you can't get it working please post your `castxml --version`<br>
output and your complete command line.<br>
<br>
-Brad<br>
</div>
</span></font></div>
</body>
</html>