> Hey all,
>
> I just know I am going to get viciously flamed for this :-), but I
> have a quick Eiffel question to ask... Allegedly I can link code with C,
> or include C statements in my Eiffel code (similar to the way you can
> include assembler in C++ code), specifically I want to call a
> program/command from the command line , using C's 'system()' function, or
> an Eiffel function if one exists...
>
> How do I do it?
>
> I'd ask this question on comp.lang.eiffel, but I don't want people to
> think I hang out with those Eiffel programming nerds! ;->
>
> Ta,
> James
This isn't me, but someone else. I know nothing about Eiffel.
In eiffel-S, you make a feature like this:
my_system(some parameteres): returnvalue is
external "C"
alias "system"
end
That will work for a library call, if you want to like your own code in,
you must chance the .pdl file, and include the line:
link "somefile.o"
If you want to include you own libraries:
lib "somelibfile.a"
-----------------------------------------------
Scott Hopwood shopwood@nospam.socs.uts.edu.au
'A monkey throws,
A spinning bone,
A silent spaceship'