Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
From: Eike Lange
Subject: Linking libraries between C and pascal
Date: 10 May 2004, 12:46:45
On Mon, Mai 10, 2004 at 12:36:11 +0200, Marten Jan de Ruiter wrote:
> Dear all,
> The default name for a pascal procedure does not work correctly
> anymore. (See the output for version number and so on below).
Following works:
program test_c_unit;
(*$L c_unit.c *)
procedure c_routine; external name 'c_routine' ;
procedure p_routine; attribute (name = 'p_routine');
begin
writeln('pascal routine invoked');
end;
begin
c_routine;
p_routine;
end.
> -----------------
#include <stdio.h>
extern void c_routine();
extern void p_routine();
void c_routine()
{
printf("c_routine invoked\n");
p_routine ();
printf("c_routine done\n");
}
> --------
Eike
Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
| Author | Subject | Date |
|---|---|---|
| Marten Jan de Ruiter | Linking libraries between C and pascal | 10 May 2004, 12:36:11 |
Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.
Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.
This page was created by Crystal 0.999 (Linux 2.4.27/i686).