Re: use shared ibrary

"Heinrich J. Gantenbrink" <[email protected]> 09 Aug 2002 11:12:06 +0200
Newsgroups gmane.comp.lang.delphi.kylix
Message-ID <[email protected]>
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.