Its solved now.. just put a .cc file as the intermediate :c-file.
On Sun, Aug 12, 2012 at 7:55 PM, bob <bobat...@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
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ecls-list mailing list
Ecls-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list