[Ecls-list] Inlining C++ code

bob bobatnet at gmail.com
Sun Aug 12 16:22:57 UTC 2012


Its solved now.. just put a .cc file as the intermediate :c-file.

On Sun, Aug 12, 2012 at 7:55 PM, bob <bobatnet at gmail.com> wrote:

> 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
>



-- 
bob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20120812/91db89e3/attachment.html>


More information about the ecl-devel mailing list