home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!Germany.EU.net!gmdtub!prosun!ralph
- From: ralph@prosun.first.gmd.de (Ralph Berg)
- Newsgroups: comp.sys.atari.st
- Subject: Problems with GCC 2.1 and *80.inc/libs !!!!!
- Message-ID: <2099@bigfoot.first.gmd.de>
- Date: 28 Jul 92 09:44:45 GMT
- Sender: news@bigfoot.first.gmd.de
- Organization: GMD-FIRST, D-1000 Berlin 10
- Lines: 77
-
-
-
-
- Hi GCC Users,
-
- I have some problems installing gcc.
- From a.a I've got:
- gpincl07.zoo
- gplibo07.zoo
- gplibt02.zoo
- includ80.zoo
- libolb.zoo
- libolb16.zoo
- libolb80.zoo and
- gcc21b02.zoo
-
-
- The installation of the libraries by replacing the old by the newest one.
- Compiling the next little program:
-
- #include <iostreams.h>
-
- class testclass {
- public:
- testclass(){ cout << "testclass::testclass\n";}
- ~testclass(){ cout << "testclass::~testclass\n";}
- };
-
- testclass t1;
-
- int main(int ac; char *av[]){
-
- testclass t2;
-
- cout << "main up\n";
-
- return 0;
- }
-
- I've got the linker error:
- Undefined in malloc.o U __split_mem referenced from text
- Undefined in sbreak.o U __split_mem referenced from text
-
- What's this _split_mem ??
-
- I added to the test program the line:
-
- long _split_mem = 0L;
-
- and all works!!!
-
-
- Then I added an object file containing the one added line to gnu.olb by
- ar vq gnu.olb split_mem.o
-
- Try to link the older test program with the new gnu.olb, the linker
- wasn't able to find the __split_mem label in split_mem.o of the gnu.olb.
- Why? What did I wrong?
-
- calling : cc -v -O test.cc split_mem.o -o test.prg -lg++
-
- all fine again!!!
-
- Can anybody help me on this ?
-
- -----------------------------------------------------------
- Gesellschaft fuer Mathematik und Datenverarbeitung
- GMD-FIRST INTERNET: ralph@gmd.first.de
- Ralph Berg UUCP: ralph@gmdtub.uucp
- Rudower Chaussee 5 Geb.:13.7 KOMEX: berg@kmx.gmd.dbp.de
- D-1199 Berlin - Adlershof VOICE: +49 30 6704-5973
- Germany FAX: +49 30 6704-5610
-
- German National Research Center for Computer Science, FIRST
- ralph@first.gmd.de
- -----------------------------------------------------------
-
-