home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / g / help / 1454 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.9 KB  |  71 lines

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!darwin.sura.net!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!julienas!corton!gna!fred
  2. From: fred@gna.axis-design.fr (Frederic Cirera)
  3. Newsgroups: gnu.g++.help
  4. Subject: Problem with g++ and -g option.
  5. Message-ID: <1992Nov18.152858.21861@gna.axis-design.fr>
  6. Date: 18 Nov 92 15:28:58 GMT
  7. Organization: GNA c/o Axis Design 119 rue de Flandre 75019 Paris
  8. Lines: 61
  9.  
  10.  
  11. Hy usenet friends.
  12.  
  13.  
  14. I compile this program with gcc2.3.1 on i486 SVR4, ld produce this error
  15.  
  16. Any ideas or bug fix ?
  17.  
  18. thanks Fred. 
  19.  
  20. # Makefile
  21. #
  22. DEBUG=-g -ggdb
  23.  
  24. x: x.o
  25.     /usr/local/bin/g++ $(DEBUG) -o x x.o
  26.  
  27. clean:
  28.     rm -f *.o x
  29.  
  30. x.o: x.C
  31.     /usr/local/bin/g++ $(DEBUG) -c x.C
  32.  
  33.  
  34.  
  35. // x.C
  36.  
  37. //
  38. #include <stdio.h>
  39.  
  40. main()
  41. {
  42.     printf("Hello world\n" );
  43. }
  44.  
  45.  
  46.  
  47. $ make
  48. /usr/local/bin/g++ -g -ggdb -c x.C
  49. /usr/local/bin/g++ -g -ggdb -o x x.o
  50. Undefined                       first referenced
  51.  symbol                             in file
  52. .L_T51                              x.o
  53. ld: x: fatal error: Symbol referencing errors. No output written to x
  54. *** Error code 1 (bu21)
  55.  
  56.  
  57.  
  58.    +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
  59.    | Frederic CIRERA             |  E-mail : fred@gna.axis-design.fr        |
  60.    | Av de la republique         |  Home   : 42 05 17 66                    |
  61.    | 91374 Verrieres le buisson  |  Office : 69 20 45 05                    |
  62.    | FRANCE.                     |                                          |
  63.    +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
  64.                                                                                
  65.  
  66. -- 
  67.    +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
  68.    | Frederic CIRERA             |  E-mail : fred@gna.axis-design.fr        |
  69.    | Av de la republique         |  Home   : 42 05 17 66                    |
  70.    | 91374 Verrieres le buisson  |  Office : 69 20 45 05                    |
  71.