| delorie.com/archives/browse.cgi | search |
| From: | "Alexander Russell" <alexad3 AT uniserve DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | link error, undefined reference to `write' |
| Date: | Sat, 6 Nov 1999 13:06:49 -0800 |
| Organization: | Uniserve |
| Lines: | 44 |
| Message-ID: | <941922425.476047@neptune.uniserve.ca> |
| X-Complaints-To: | newsabuse AT supernews DOT com |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Newsreader: | Microsoft Outlook Express 5.00.2314.1300 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2314.1300 |
| Cache-Post-Path: | neptune.uniserve.ca!204.244.158.134 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
the make file: --------------- CC = gcc link = ld CFLAGS = -O -c LFLAGS = -Lc:\\djgpp\\lib c:\\djgpp\\lib\\crt0.o LFLAGS2 = -lm -lc -lgcc -o OBJECTS = database.o crossw.o words.o TARGET = CROSSW.EXE $(TARGET) : $(OBJECTS) $(link) $(LFLAGS) $(OBJECTS) $(LFLAGS2) $(TARGET) %.o : %.cpp $(CC) $(CFLAGS) $< ------------- the error ld -Lc:\\djgpp\\lib c:\\djgpp\\lib\\crt0.o database.o crossw.o words.o -lm -lc - lgcc -o CROSSW.EXE c:\djgpp\lib/libgcc.a(_new_handler.o): In function `__default_new_handler': libgcc2.c(.text+0x4d): undefined reference to `write' make.exe: *** [CROSSW.EXE] Error 1 Am I missing a lib in the link line? Wrong order? The code uses fprintf, putc, putch fwrite, fopen, fclose Installed djgpp from: bnu281b.zip djdev202.zip gcc281.zip gpp281b.zip Thanks for any help, clues. -- Alex Russell alexad3 AT uniserve DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |