Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
From: da Silva, Joe
Subject: Trouble using GPC modules
Date: 21 Jan 2002, 19:39:08
Please see below ... Joe. > -----Original Message----- > From: Frank Heckenbach [SMTP:frank@g-n-u.de] > Sent: Monday, January 21, 2002 1:59 AM > To: gpc@gnu.de > Subject: Re: Trouble using GPC modules > > Nicolas Courtel wrote: > > > I'm trying to use the simple GPC modules mechanism, as described in the > Doc > > (7.1.8.1, page 85), and can't figure out how to link the provided > example, with > > module DemoMod3 and program ModDemo3. > > > > I'm using GPC 20011202 on Solaris-8; I tried several methods, for > example: > > > > % gpc --automake moddemo3.pas > > > > and always get undefined linking errors: > > > > Setfoo /var/tmp/cc2daawp1.o > > Getfoo /var/tmp/cc2daawp1.o > > > > I guess the solution is really simple, but can't find it, please help! > > > > Here's the example source code: > > Works for me. Perhaps you need to specify the `asmname's (anyway, > this will be required in the future when GPC will support qualified > identifiers, so you might as well do it now, and perhaps it will > solve your problem): > > module DemoMod3; > > type > FooType = Integer; > > var > Foo : FooType; > > procedure SetFoo (f : FooType); asmname 'setfoo'; > procedure SetFoo (f : FooType); > [Joe da Silva] OK, time for a silly question ... <g> Why does the procedure header need to be given twice? (Looks weird!)
Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
| Author | Subject | Date |
|---|---|---|
| Frank Heckenbach | Trouble using GPC modules | 21 Jan 2002, 16:07:57 |
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).