From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,7a5a9f729fa0538a,start X-Google-Attributes: gidf7344,public X-Google-Thread: f7cd1,7a5a9f729fa0538a,start X-Google-Attributes: gidf7cd1,public X-Google-Thread: 1107e7,7a5a9f729fa0538a,start X-Google-Attributes: gid1107e7,public X-Google-Thread: 1164f8,7a5a9f729fa0538a,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-04-04 18:24:18 PST Xref: gmd.de vmsnet.misc:1069 comp.sys.dec:6769 comp.misc:4711 comp.os.vms:21321 Path: gmd.de!newsserver.jvnc.net!yale.edu!nigel.msen.com!emory!news-feed-1.peachnet.edu!darwin.sura.net!wupost!waikato.ac.nz!comp.vuw.ac.nz!canterbury.ac.nz!lincoln.ac.nz!wronz.org.nz!claridge Newsgroups: vmsnet.misc,comp.sys.dec,comp.misc,comp.os.vms Subject: HELP: Can't link GCC .OBJ files Message-ID: <1993Apr5.115215.118@wronz.org.nz> From: claridge@wronz.org.nz Date: 5 Apr 93 11:52:15 +1200 Hi, We pulled GNU-C off the decus library tapes, un back-up'd it and followed the instructions from the various read-me's, etc. (we think) Anyway, we can easily compile, no wories!! Beaut! UNNNNfortunately, we can't link the compiled .OBJ (not Beaut) . Example file (hello-world) below. File: Hello.c (not incl the `-------'s) ------------------------------------------------------- #include main() { puts("hello world\n") ; } ------------------------------------------------------- VAX instructions given: (VMS V5.4-3) $ GCC HELLO (completes, no errors, surprise, surprise) $ LINK HELLO %LINK-W-NUDFSYMS, 2 undefined symbols: %LINK-I-UDFSYM, C$MAIN_ARGS %LINK-I-UDFSYM, PUTS %LINK-W-USEUNDEF, undefined symbol PUTS referenced in psect $CODE offset %X0000001B in module HELLO file USER2:[CLARIDGE.GENERAL]HELLO.OBJ;2 %LINK-W-USEUNDEF, undefined symbol C$MAIN_ARGS referenced in psect $CODE offset %X00000011 in module HELLO file USER2:[CLARIDGE.GENERAL]HELLO.OBJ;2 We have tried using explicit link library commands e.g. $ LIN HELLO , SYS$GCCDIR:GCCLIB/LIBRARY same (exactly) error message. WHY ????? Please, someone help me I am going gaga! Regards, Robert Burling-Claridge, WRONZ, Lincoln, NZ. Internet : CLARIDGE@WRONZ.ORG.NZ PSI : (05301)30000047::CLARIDGE snail : Wool Research Organisation of NZ, Private Bag 4749, Christchurch, New Zealand "Why would anyone need a computer of their own ? " -- Ken Olsen, 1974.