phoenix@ms.uky.edu (R'ykandar Korra'ti) (06/04/89)
This is probably too basic for this section, but comp.sys.amiga couldn't help, and it hasn't been discussed before - so apologies for those bored. 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. -- | "Signature, hell! I can barely print!" | phoenix@ukma.bitnet | Plink: | | "Who let him in here?" - Tom Smith | CIS: 72406,370 | Skywise | | "Yes, that IS my real name. No, I'm NOT joking." | QLink: Bearclaw |
cmcmanis%pepper@Sun.COM (Chuck McManis) (06/05/89)
In article <11831@s.ms.uky.edu> phoenix@ms.uky.edu (R'ykandar Korra'ti) writes: > This is probably too basic for this section, but comp.sys.amiga couldn't >help, and it hasn't been discussed before - so apologies for those bored. Weeeelll, I'd like to help but ... > I'm trying to use the Draco compiler, ... > but when I BLink the resulting object deck, I'm told that there are > unresolved external references in the libraries. You have several counts going against you. 1) Your using Draco which while a neat compiler isn't used by that many folks. 2) You _never_ mention what the unresolved symbols were. _SysBase? 3) You live on bitnet and mail to you bounces from here. So how about telling us what symbols aren't resolved? --Chuck McManis uucp: {anywhere}!sun!cmcmanis BIX: cmcmanis ARPAnet: cmcmanis@sun.com These opinions are my own and no one elses, but you knew that didn't you. "A most excellent barbarian ... Genghis Kahn!"
phoenix@ms.uky.edu (R'ykandar Korra'ti) (06/05/89)
Oops. Sorry about that. Here's more info: Unresolved symbols are _d_parLen and _d_parSave - both occur in the library Draco.lib. I'm using BLink V6.7, dated 15 October 1986, if that is needed. Let me know what else I need to find out and tell you - I've not programmed on either the Amiga or a Unix system before, except in no-longer-tolerable-abominations like AmigaBASIC. I just got here from IBM Mainframe Land (ever done AI work in FORTRAN? No? Good. Don't.) and I'm completely unfamiliar with the environment. Also, I'm not just on bitnet - I get netmail replies a lot. (About 30 requests for Amiga Logo in the last couple of weeks, for example...) However, I am new to the net, and am trying to figure out all this stuff. Try phoenix@ms.uky.edu as a possible address. - R'ykandar. -- | "Signature, hell! I can barely print!" | phoenix@ukma.bitnet | Plink: | | "Who let him in here?" - Tom Smith | CIS: 72406,370 | Skywise | | "Yes, that IS my real name. No, I'm NOT joking." | QLink: Bearclaw |
cg@myrias.UUCP (Chris Gray) (06/06/89)
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