Re: use shared ibrary
Chen Xian-yao <[email protected]> Fri, 09 Aug 2002 17:33:29 +0800
| Newsgroups | gmane.comp.lang.delphi.kylix |
|---|---|
| Message-ID | <[email protected]> |
Hi, Heinrich, thank you
I tried to write the library in Delphi with the same method and
almost same code as in Kylix,
and use Fortran 90 for windows to call this library, it does work. But
it does use some special
routines of Windows to do it. I donot know how to do it in Linux. Would
you please tell me
how to do it in Linux?
Xianyao
Heinrich J. Gantenbrink wrote:
> Hi,
>
> as long as i know, it is no problem to create a .so with Kylix.
> ("File->New->Library" (?sorry, i hve the german version))
> BUT, everytime u write a shared library in language A for use in
> language B, you have to be sure about some things:
>
> 1) Headers. You can't use the .so in language B without anything else.
> You have to tell the compiler name of functions, resulttype etc. In
> C/C++ this is done by header files, in delphi mostly via units.
>
> 2) You have to be sure, that language B can call your
> functions/procedure in your .so. Many compilers are using diffrent
> methods for calling functions/procedures. If you want to write a .so for
> Fortran, first find out, how these Programms call Procedues. If it is
> like in C/C++, you simply have to include "stdcall;" in every exported
> function in your .so.
>
> SO long,
>
> Henock
>
> Am Don, 2002-08-08 um 18.01 schrieb xianyaochen: Dear All,
>
> Would you please tell me how to use Kylix to make a shared library
> (.so), which can be used by Intel Fortran Compiler or other Fortran
> Compiler?
>
> Thanks in advance.
>
> Xianyao
>
>
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>
> -------------------------------------------------------
> Forum / mailing list for Borland Kylix programmers
> Our web page: http://groups.yahoo.com/group/kylixgroup
> To join the forum: [email protected]
> To unsubscribe: [email protected]
> To post your messages: [email protected]
> To contact the moderator: [email protected]
> -------------------------------------------------------
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
>
>
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
> <http://rd.yahoo.com/M=228862.2128520.3581629.1829184/D=egroupweb/S=1705115362:HM/A=1182742/R=0/*http://adfarm.mediaplex.com/ad/ck/990-1736-1039-336%0A>
>
>
>
> -------------------------------------------------------
> Forum / mailing list for Borland Kylix programmers
> Our web page: http://groups.yahoo.com/group/kylixgroup
> To join the forum: [email protected]
> To unsubscribe: [email protected]
> To post your messages: [email protected]
> To contact the moderator: [email protected]
> -------------------------------------------------------
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
> <http://docs.yahoo.com/info/terms/>.
[Non-text portions of this message have been removed]