Path: news.daimi.aau.dk!news.uni-c.dk!sunic!sunic.sunet.se!news.luth.se!eru.mt.luth.se!bloom-beacon.mit.edu!crl.dec.com!caen!usenet.cis.ufl.edu!usenet.eel.ufl.edu!pacifier!news.alpha.net!uwm.edu!lll-winken.llnl.gov!venus.sun.com!news2me.EBay.Sun.COM!engnews2.Eng.Sun.COM!olm From: olm@Eng.Sun.COM (Ole Lehrmann Madsen) Newsgroups: comp.lang.beta Subject: Re: Constants in Beta Date: 21 Apr 1995 07:21:29 GMT Organization: Sun Microsystems Inc., Mountain View, CA Lines: 28 Message-ID: <3n7mdp$h6f@engnews2.Eng.Sun.COM> References: <3n1mdi$6h3@pulm1.accessone.com> <3n462c$9q0@pulm1.accessone.com> NNTP-Posting-Host: det.eng.sun.com X-Newsreader: NN version 6.5.0 #21 (NOV) Baiss E. Magnusson writes: >>However, it fails to build successfully ( as shown by the error at the >>bottom), and in fact the same thing happens when I try to build >>! >The situation works, and I assume the following: >It works because you don't compile library modules, instead they are >compiled when you compile the main program and Beta compiles any > files into an object file, if an object file does not exist for >the library. You are almost right: You can compile library modules. The error you got is not a real compiler error, but due to the fact that the compiler calls the linker and attempts to link a program. It is however not possible to link library module since no main program is present. As far as I know the next release of the compiler will not call the linker for a libraray module. However, the error message can just be ignored. I.e. you library module compiles,a dn as you haev experienced, it works fine when included in a main program. ---olm