[Ecls-list] Inlining C++ code
bob
bobatnet at gmail.com
Sun Aug 12 14:25:41 UTC 2012
Hi,
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:
(ffi:clines "#include <iostream>")
(defun try (x)
(ffi:c-inline (x) (:int) (values :int) "
{
std::cout << #0;
@(return)= 1;
}"
:side-effects nil))
(try 2)
Any ideas?
--
bob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20120812/dbba0ee3/attachment.html>
More information about the ecl-devel
mailing list