Xref: news-dnh.mv.net comp.os.msdos.djgpp:3417 Path: news-dnh.mv.net!mv!news.sprintlink.net!newsfeed.internetmci.com!news.kei.com!simtel!swidir.switch.ch!scsing.switch.ch!rzunews.unizh.ch!alex From: alex AT zool DOT unizh DOT ch (Alex Schroeder) Newsgroups: comp.os.msdos.djgpp Subject: Re: Using the GNU C++ library & linkage errors Date: 24 Nov 1995 12:40:16 GMT Organization: University of Zurich, Switzerland Lines: 82 References: Nntp-Posting-Host: rzurs10.unizh.ch To: djgpp AT sun DOT soe DOT clarkson DOT edu Dj-Gateway: from newsgroup comp.os.msdos.djgpp On Thu, 23 Nov 1995 09:41:07 GMT, Eli Zaretskii wrote: > 1) The version of libgpp.a you are using. The one I have is > dated January 18 1995 and its size is 532308 bytes. That might be the probelm, as you can see from the following list. Now that I look at it, it seems way to small. Strangely enough I never got any warnings when I unzipped the files. Perhaps part of the file was lost while defragging the harddisk or so? Anyway, I'll reinstall the archive and if it still doesn't work, I'll be back. Until then ;) and thanks for the qualified help - one of the very few usable replies I have received! lib directory: -------------------------------------------------------- Datentraeger in Laufwerk C ist Illusion Datentraegernummer: 1AE3-A9C8 Verzeichnis von C:\UTIL\GCC\LIB .. 07-11-95 1:13p ... 07-11-95 1:13p CRT0 O 1562 05-01-94 9:41p GCRT0 O 3652 05-01-94 9:41p LIBC A 238964 07-11-95 1:46p LIBC_P A 263894 07-11-95 1:46p LIBG A 562 10-16-93 12:05p LIBGCC A 49184 12-17-94 6:43p LIBGCC_P A 53210 07-23-94 4:13p LIBGPL A 28754 11-13-93 7:57p LIBGPL_P A 29604 11-13-93 7:58p LIBGPP A 68374 07-11-95 1:40p LIBGR A 16756 11-28-93 2:10a LIBGR_P A 18478 11-28-93 2:10a LIBG_P A 616 10-16-93 12:05p LIBIOSTR A 194494 12-18-94 10:29p LIBM A 11674 11-28-93 2:10a LIBM_P A 12126 11-28-93 2:10a LIBPC A 15614 05-01-94 8:56p LIBPC_P A 17108 05-01-94 8:56p SPECS 354 06-27-94 11:41p 21 Datei(en) 1024980 Byte 25958400 Byte frei > 3) Your system sets FILES= to a number which is too low, so > that ld.exe cannot open libgpp.a (but I think it should have printed > a message to that effect). > 4) Your environment doesn't have enough space for all the > environment variables which gcc needs. I do not think that these two count, as you can see: extract from my config.sys file: -------------------------------------------------------- SHELL = C:\DOS\COMMAND.COM C:\DOS\ /p /e:2048 BUFFERS = 30,0 FILES = 30 LASTDRIVE = E FCBS = 4,0 SWITCHES = /F DEVICE = C:\DOS\HIMEM.SYS > 2) The version of gcc.exe you are using. Mine is dated > February 1 1995 and its size is 79872 bytes. I'll check that, too. > 5) Try passing the --verbose option to ld to see what files it > opens while linking. How do I do that? Can I pass --verbose to gcc or do I have to start ld myself on all the object files? In that case I have to link in the crt0.o, too, right? I'll try an see. Alex. -- Grofzg! Mofzg! NagaNnaga! NnnaAARGHGAA! Agha! Naganahhagga! PGP public key available on request from alex AT zool DOT unizh DOT ch