Path: news.daimi.aau.dk!poe From: Thomas Rosanski Newsgroups: comp.lang.beta Subject: problems with fragment system / compiler Date: 31 May 1995 07:13:25 GMT Organization: DAIMI, Computer Science Dept. at Aarhus University Lines: 69 Approved: mailtonews@daimi.aau.dk Distribution: world Message-ID: <3qh4ul$lss@belfort.daimi.aau.dk> NNTP-Posting-Host: daimi.daimi.aau.dk e.g.: Take the example from MIA 90-02(1.3) August 1994, page 15 and 16: (shortened) "Introduce the following SLOTs: (filename 'stack.bet') ORIGIN '~beta/basiclib/current/betaenv'; BODY 'stackImp' --- Lib: attributes --- stack: (# element:, Object; private: @<>; push: (# (* some code with another slot *) #); (* more attributes *) #) Create a new fragment file 'stackImp.bet': ORIGIN 'stack'; --- private: descriptor --- (# A: ,[100] ^element; top: @intger; #) (* some more fragment descriptions *) " I am useing the Mjolner Beta System 5.0(2) for Linux(Intel 386/486) and I can not compile the library fragment 'stack.bet'. After typeing 'beta stack' I get the following message: Mjolner BETA System version 5.0(2) for Linux(Intel 386/486) Target machine type linux Building dependency graph for: 'stack' ... Parsing: 'stack' Parsing: 'stackImp' Translating fragments ... Open: '~beta/basiclib/current/betaenv' Basic BETA environment: '~beta/basiclib/current/betaenv' Bind fragments in: 'stack'!Checking!Code generation. assembling /home/linux/beta/linux/stackImp..s assembling /home/linux/beta/linux/stack..s Linking /usr/local/beta-3.0/basiclib/current/linux/betaenv.o: Undefined symbol >> >> T1PROGRAM referenced from text segment ">>" means that this is one line. But I can compile an ordinary program fragment useing the library, e.g.: ORIGIN '~beta/basiclib/current/betaenv'; INCLUDE 'stack' -- program: descriptor -- (# myStack: stack (# element:: IntegerObject #); A: @myStack do (* some code *) #) As far as I understood, the fragment system should include the facility to compile fragments seperatly. So what did I do wrong? -- Thomas Rosanski student at the University of Dortmund, Germany Internet: rosans00@marvin.informatik.uni-dortmund.de PS: Don't hesitate to contact me... ...if you are programming BETA or SML as a novice ...if you own an ATARI 8-bit micro ...if you have a good-paid job for me ...if you are a girl aged 18 to 22 ...if you can proof that 1+2^(2^100) is a prime number ...if you just wanna talk with me ...or for any other reason