home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / gnu / gcc / help / 2511 < prev    next >
Encoding:
Text File  |  1992-11-12  |  2.1 KB  |  55 lines

  1. Xref: sparky gnu.gcc.help:2511 comp.os.vms:17874
  2. Newsgroups: gnu.gcc.help,comp.os.vms
  3. Path: sparky!uunet!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!garvin
  4. From: garvin@athena.mit.edu (Langton C Garvin)
  5. Subject: help on installing GCC v2.2 on VMS
  6. Message-ID: <1992Nov12.214333.9072@athena.mit.edu>
  7. Sender: news@athena.mit.edu (News system)
  8. Nntp-Posting-Host: e40-008-10.mit.edu
  9. Organization: Massachusetts Institute of Technology
  10. Date: Thu, 12 Nov 1992 21:43:33 GMT
  11. Lines: 42
  12.  
  13. Hi, I need some help. I just got the gcc v2.2 pre-compiled savesets
  14. from mango.rsmas.miami.edu and I tried to install only the gcc
  15. compiler, preprocessor, header files, etc (I did not try to install
  16. bison, g++, libg++, or the info files).  To test the installation, I
  17. tried to compile and link the following  "Hello World" code:
  18.  
  19. #include <stdio.h>
  20. main ()
  21. {
  22. printf("Hello World\n");
  23. }
  24.  
  25. I was able to compile it OK with "$ GCC HELLO.C" (ie. I was able to
  26. get an object file), but when I tried to link the code with:
  27. "$ LINK HELLO, GNU_CC:[000000]GCCLIB.OLB/LIB"
  28. I wound up getting the following errors:
  29.  
  30. %LINK-W-NUDFSYMS, 3 undefined symbols:
  31. %LINK-I-UDFSYM,         C$MAIN_ARGS
  32. %LINK-I-UDFSYM,         PRINTF
  33. %LINK-I-UDFSYM,         __MAIN
  34. %LINK-W-USEUNDEF, undefined symbol PRINTF referenced
  35.         in psect $CODE offset %X00000025
  36.         in module HELLO file USER2$DISK:[POULOS.C.GCC022B.GCC-SRC.VMS.GCCLIB]HELLO.OBJ;1
  37. %LINK-W-USEUNDEF, undefined symbol __MAIN referenced
  38.         in psect $CODE offset %X0000001B
  39.         in module HELLO file USER2$DISK:[POULOS.C.GCC022B.GCC-SRC.VMS.GCCLIB]HELLO.OBJ;1
  40. %LINK-W-USEUNDEF, undefined symbol C$MAIN_ARGS referenced
  41.         in psect $CODE offset %X00000011
  42.         in module HELLO file USER2$DISK:[POULOS.C.GCC022B.GCC-SRC.VMS.GCCLIB]HELLO.OBJ;1
  43.  
  44. --------------------------
  45.  
  46. What's going on? Have I gotten an incomplete version of the object
  47. library? How can I get the compiler (or is it the linker ?) to work
  48. properly on this machine? Do I have to install all the other bison and
  49. g++ stuff to make it work?  Any help  or advice would be greatly
  50. appreciated.
  51.  
  52. Please send replies to garvin@athena.mit.edu
  53.  
  54.  
  55.