This is a multi-part message in MIME format.
--------------7C621177126D
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi Poppers
I thought I would lean how to use popc but I have got stuck at the
first hurdle. I am trying to compile a file which uses getline but
popc does not seem able to find it.
Running the file from the pop11 command works
beowulf> pop11 ":load hello.p; hello();"
;;; LOADING hello.p
** [Hello World]
** <termin>
beowulf>
But if I try and compile it with popc then I get a compiler error.
beowulf> popc -e hello hello.p
LIBRARY IDENTIFIER getline NOT FOUND
;;; MISHAP - POPC: FILE HAS COMPILATION ERRORS (see above)
beowulf>
If I replace the "uses" line with
weak global vars (getline);
I can compile it with the command
beowulf> popc -e hello $popautolib/getline.p hello.p
/packages/poplog15.0/pop/lib/auto/getline.p
hello.p
Linking ...
beowulf> ./a.out
** [Hello World]
** <termin>
beowulf>
But this mean I would have to modify every pop11 file
that uses "uses".
What am I doing wrong?
PS.
beowulf> pop11
Sussex Poplog (Version 15.0 Tue Feb 13 12:42:56 GMT 1996)
Copyright (c) 1982-1995 University of Sussex. All rights reserved.
Setpop
: pop_internal_version =>
** 150000
--
Anthony Worrall
The University of Reading,
Department of Computer Science,
Whiteknights, PO Box 225
Reading,
Berkshire, UK
RG6 6AY
Tel: +44 (0)1734 318610
Fax: +44 (0)1734 751994
Email: Anthony.Worrall@Reading.ac.uk
--------------7C621177126D
Content-Type: text/plain; charset=us-ascii; name="hello.p"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="hello.p"
section ;
compile_mode :pop11 +strict;
uses getline;
define hello();
getline([Hello World]) =>
enddefine;
endsection;
--------------7C621177126D--
|