<font size="4"><font face="garamond,serif"><font>Its solved now.. just put a .cc file as the intermediate :c-file.</font><br></font></font><br><div class="gmail_quote">On Sun, Aug 12, 2012 at 7:55 PM, bob <span dir="ltr"><<a href="mailto:bobatnet@gmail.com" target="_blank">bobatnet@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font size="4"><font face="garamond,serif"><font><font face="arial,helvetica,sans-serif">Hi,<br><br>I am trying to inline some C++ code in a lisp function and include the iostream header file. But i keep getting an iostream not found error although it is one of the standard libraries:<br>
<br>(ffi:clines "#include <iostream>")<br><br>(defun try (x)<br> (ffi:c-inline (x) (:int) (values :int) "<br>{<br>std::cout << #0;<br>@(return)= 1;<br>}"<br> :side-effects nil))<br>
<br>(try 2)<br clear="all"></font></font></font></font><br>Any ideas?<span class="HOEnZb"><font color="#888888"><br><br>-- <br>bob<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>bob<br>