Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 exptools; site ihwpt.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!ihwpt!knudsen From: knudsen@ihwpt.UUCP (mike knudsen) Newsgroups: net.micro.6809 Subject: Strange C-Linker Errors-Help! Message-ID: <765@ihwpt.UUCP> Date: Mon, 17-Mar-86 13:29:28 EST Article-I.D.: ihwpt.765 Posted: Mon Mar 17 13:29:28 1986 Date-Received: Wed, 19-Mar-86 04:49:48 EST Distribution: net Organization: AT&T Bell Laboratories Lines: 49 Has anyone using Microware's Level I 6809 C Compiler ever seen anything like this? The Linker reads the .r files and the Library, then prints out a dozen lines of the form: Missing Symbol Ref'ed in In file _11 mused_c mused.r _52 mused_c mused.r _123 mused_c mused.r etc. Now, mused.c is the file containing only my main() program and nothing else (the word "mused" doesn't even appear inside it). I've seen lots of legitimate linker errors, when a function or external variable couldn't be found (these were listed by name and easily recognized), but never any _ symbols. I know the intermediate Assembler code uses labels in the underscore-number format. Some theories: (1) These are calls to mult, divide, etc. routines and the library is braindamaged and doesn't supply them. (2) These are external constants made up by the compiler that somehow got lost. (3) One of the compiler phases screwed up and put out a bogus intermediate file. Sometimes the phases do mis-load from CMDS/ and when that happens they either crash or sometimes write bad output that the next phase *usually* chokes on. Funny, OS9 isn't supposed to load disk files with bad CRCs -- the bytes must get hosed during or after being written to RAM. I'd appreciate hearing from anyone who has seen this style of error and can save me from re-inventing the wheel. I plan to re-compile the main program (mused.c) and try again. It had been only slightly modified since the last good compile/link. Also, is "ident" supposed to work on C libraries? It always gives me "incorrect header" error. Is that normal? Ident works fine on "os9boot". Thanks, mike k