Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!ncc!myrias!cg From: cg@myrias.UUCP (Chris Gray) Newsgroups: comp.sys.amiga.tech Subject: Re: I need help with Draco/BLink libraries. Summary: We need more info to help Keywords: DRACO, BLINK, CONFOOZED, LIBRARIES, UNRESOLVED EXTERNAL REFERENCES Message-ID: <1235@myrias.UUCP> Date: 5 Jun 89 17:16:15 GMT References: <11831@s.ms.uky.edu> Organization: Myrias Research Corporation Lines: 56 In article <11831@s.ms.uky.edu> phoenix@ms.uky.edu (R'ykandar Korra'ti) writes: > > I'm trying to use the Draco compiler, new version 1.2, to write some >programmes. I am also using BLink to link these programmes. I seem to be >able to compile the source, but when I BLink the resulting object deck, I'm >told that there are unresolved external references in the libraries. I'm using >all the libraries supplied with the Draco disks (I even threw in old ones >from V1.1 of Draco...) but with no luck. Does anyone have any ideas about >what I can do to fix this? (For example, what libraries not included with >Draco are needed for BLinking things?) The unresolved reference is in >Draco.lib, if that would help. > Reply via EMail unless you think the reply might be interesting to the >net as a whole. Also, if people wish, I'll post the final results here. > - R'ykandar. As Chuck said, replying to you is a bit iffy, so I'll post (apologies to those who couldn't care less). First, make sure that you have your system set up properly for Draco. You should have the following assigns DRINC: the include files (the 1.2 ones are best) DRLIB: the Draco libraries and startup code (if you are using the 1.2 compiler, you must use the 1.2 libraries and startup) Then, you should also have the various link scripts in your S: directory. These are the things like drraw, dr1, dr1lib, dr2, etc. If you are using AmigaDOS V1.3, just set the script bit on them and use them as commands. Thus, if you are linking just a single source file which uses the I/O constructs, you would link with dr1 myfile What this would effectively expand to is: blink from drlib:drstart.o+myfile.r library drlib:drio.lib+drlib:draco.lib+drlib:exec.lib+drlib:dos.lib smallcode to myfile From your message, I would gess that you are doing your linking manually with BLink, and are missing something out. If you are using any of the Amiga libraries (e.g. intuition.library, graphics.library), then you must add the appropriate library from DRLIB: to the above list (as in "drlib:intuition.lib"). If you want, you could just JOIN all of the libraries (NOT the startup files) into one huge "amiga.lib", but that slows down the linking. P.S. I now have a Draco V1.3 (beta), which cleans up the code a bit more in some places, and adds symbolic information for file-level variables. This latter is useful in my symbolic disassembler (to be released soon - problems with my CDC disk drive are slowing me down), and a future debugger. -- Chris Gray Myrias Research, Edmonton +1 403 428 1616 {uunet!mnetor,ubc-vision,watmath,vax135}!alberta!myrias!cg