home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / atari / st / 11790 < prev    next >
Encoding:
Text File  |  1992-07-28  |  2.0 KB  |  88 lines

  1. Path: sparky!uunet!mcsun!Germany.EU.net!gmdtub!prosun!ralph
  2. From: ralph@prosun.first.gmd.de (Ralph Berg)
  3. Newsgroups: comp.sys.atari.st
  4. Subject: Problems with GCC 2.1 and *80.inc/libs !!!!!
  5. Message-ID: <2099@bigfoot.first.gmd.de>
  6. Date: 28 Jul 92 09:44:45 GMT
  7. Sender: news@bigfoot.first.gmd.de
  8. Organization: GMD-FIRST, D-1000 Berlin 10
  9. Lines: 77
  10.  
  11.  
  12.  
  13.  
  14. Hi GCC Users,
  15.  
  16. I have some problems installing gcc.
  17. From a.a I've got:
  18.     gpincl07.zoo
  19.     gplibo07.zoo
  20.     gplibt02.zoo
  21.     includ80.zoo
  22.     libolb.zoo
  23.     libolb16.zoo
  24.     libolb80.zoo  and
  25.     gcc21b02.zoo
  26.  
  27.  
  28. The installation of the libraries by replacing the old by the newest one.
  29. Compiling the next little program:
  30.  
  31.     #include <iostreams.h>
  32.  
  33.     class testclass {
  34.     public:
  35.         testclass(){ cout << "testclass::testclass\n";}
  36.         ~testclass(){ cout << "testclass::~testclass\n";}
  37.     };
  38.  
  39.     testclass t1;
  40.  
  41.     int main(int ac; char *av[]){
  42.  
  43.         testclass t2;
  44.  
  45.         cout << "main up\n";
  46.  
  47.         return 0;
  48.     }
  49.  
  50. I've got the linker error:
  51. Undefined in malloc.o  U __split_mem  referenced from text
  52. Undefined in sbreak.o  U __split_mem  referenced from text
  53.  
  54. What's this _split_mem ??
  55.  
  56. I added to the test program the line:
  57.  
  58. long _split_mem = 0L;
  59.  
  60. and all works!!!
  61.  
  62.  
  63. Then I added an object file containing the one added line to gnu.olb by
  64.     ar vq gnu.olb split_mem.o
  65.  
  66. Try to link the older test program with the new gnu.olb, the linker 
  67. wasn't able to find the __split_mem label in split_mem.o of the gnu.olb.
  68. Why? What did I wrong?
  69.  
  70. calling : cc -v -O test.cc split_mem.o -o test.prg -lg++
  71.  
  72. all fine again!!!
  73.  
  74. Can anybody help me on this ?
  75.  
  76. -----------------------------------------------------------
  77. Gesellschaft fuer Mathematik und Datenverarbeitung
  78. GMD-FIRST               INTERNET: ralph@gmd.first.de
  79. Ralph Berg                UUCP:     ralph@gmdtub.uucp
  80. Rudower Chaussee 5 Geb.:13.7       KOMEX:    berg@kmx.gmd.dbp.de
  81. D-1199 Berlin - Adlershof       VOICE:    +49 30 6704-5973
  82. Germany                   FAX:      +49 30 6704-5610
  83.  
  84. German National Research Center for Computer Science, FIRST
  85. ralph@first.gmd.de
  86. -----------------------------------------------------------
  87.  
  88.