Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
From: J. David Bryan
Subject: Calling Pascal routines from C
Date: 8 Nov 2002, 12:18:42
On 7 Nov 2002 at 19:38, Markus Gerwinski wrote:
> J. David Bryan wrote:
> > The second command line doesn't include "foo.o", so the linker has no
> > way to resolve "Bar". Try:
> >
> > gcc footest.c foo.o -o footest
>
> Thanks. There's still something wrong...
My apologies. "gcc" doesn't know about the Pascal run-time library, which
is needed to resolve the externals you listed. You can either tell "gcc"
about the Pascal library:
gcc footest.c foo.o -o footest -lgpc
...although that depends on "gcc" being able to find "libgpc.a" in its
default search paths, or you can have "gpc" run the linker ("gpc" already
knows about the Pascal library):
gcc -c footest.c
gpc foo.pas footest.o -o footest
-- Dave
Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
| Author | Subject | Date |
|---|---|---|
| J. David Bryan | Calling Pascal routines from C | 7 Nov 2002, 12:10:19 |
| Markus Gerwinski | Calling Pascal routines from C | 7 Nov 2002, 19:38:27 |
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).