Article View: gnu.gcc.help
Article #616help on installing GCC v2.2 on VMS
From: Langton C Garvin
Date: Thu, 12 Nov 1992 21:43
Date: Thu, 12 Nov 1992 21:43
40 lines
2149 bytes
2149 bytes
Hi, I need some help. I just got the gcc v2.2 pre-compiled savesets
from mango.rsmas.miami.edu and I tried to install only the gcc
compiler, preprocessor, header files, etc (I did not try to install
bison, g++, libg++, or the info files). To test the installation, I
tried to compile and link the following "Hello World" code:
#include <stdio.h>
main ()
{
printf("Hello World\n");
}
I was able to compile it OK with "$ GCC HELLO.C" (ie. I was able to
get an object file), but when I tried to link the code with:
"$ LINK HELLO, GNU_CC:[000000]GCCLIB.OLB/LIB"
I wound up getting the following errors:
%LINK-W-NUDFSYMS, 3 undefined symbols:
%LINK-I-UDFSYM, C$MAIN_ARGS
%LINK-I-UDFSYM, PRINTF
%LINK-I-UDFSYM, __MAIN
%LINK-W-USEUNDEF, undefined symbol PRINTF referenced
in psect $CODE offset %X00000025
in module HELLO file USER2$DISK:[POULOS.C.GCC022B.GCC-SRC.VMS.GCCLIB]HELLO.OBJ;1
%LINK-W-USEUNDEF, undefined symbol __MAIN referenced
in psect $CODE offset %X0000001B
in module HELLO file USER2$DISK:[POULOS.C.GCC022B.GCC-SRC.VMS.GCCLIB]HELLO.OBJ;1
%LINK-W-USEUNDEF, undefined symbol C$MAIN_ARGS referenced
in psect $CODE offset %X00000011
in module HELLO file USER2$DISK:[POULOS.C.GCC022B.GCC-SRC.VMS.GCCLIB]HELLO.OBJ;1
--------------------------
What's going on? Have I gotten an incomplete version of the object
library? How can I get the compiler (or is it the linker ?) to work
properly on this machine? Do I have to install all the other bison and
g++ stuff to make it work? Any help or advice would be greatly
appreciated.
Please send replies to garvin@athena.mit.edu
Technical Details
Message-ID:
<1992Nov12.214333.9072@athena.mit.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!garvinShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.help,comp.os.vms Path: arc1-ca.pugleaf.net!sparky!uunet!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!garvin From: garvin@athena.mit.edu (Langton C Garvin) Subject: help on installing GCC v2.2 on VMS Message-ID: <1992Nov12.214333.9072@athena.mit.edu> Sender: news@athena.mit.edu (News system) Nntp-Posting-Host: e40-008-10.mit.edu Organization: Massachusetts Institute of Technology Date: Thu, 12 Nov 1992 21:43:33 GMT Lines: 42