delorie.com/archives/browse.cgi | search |
From: | "Troelz Denver" <c938133 AT student DOT dtu DOT dk> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Troubles linking into a library |
Date: | Thu, 26 Aug 1999 17:03:25 +0200 |
Organization: | UNI-C |
Lines: | 52 |
Message-ID: | <7q3l2d$18ve$1@news.net.uni-c.dk> |
References: | <7q0a36$10c0$1 AT news DOT net DOT uni-c DOT dk> <7q0o93$ne5$1 AT antares DOT lu DOT erisoft DOT se> <7q0sim$12iu$1 AT news DOT net DOT uni-c DOT dk> <7q10p4$rr8$1 AT antares DOT lu DOT erisoft DOT se> |
NNTP-Posting-Host: | pc97.iau.dtu.dk |
X-Trace: | news.net.uni-c.dk 935679885 41966 192.38.66.197 (26 Aug 1999 15:04:45 GMT) |
X-Complaints-To: | usenet AT news DOT net DOT uni-c DOT dk |
NNTP-Posting-Date: | 26 Aug 1999 15:04:45 GMT |
X-Newsreader: | Microsoft Outlook Express 4.72.3110.1 |
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
> >Try "gcc -v file.c -L. -lfileout". If that doesn't work, post the output >from that commmand. > >FYI, "gcc ... -lfoo" will become "gcc ... libfoo.a" IIRC, so "-llibfileout.a" >or "-libfileout.a" is certainly _not_ what you want. > > >Right, > > MartinS C:\Documents\C\GrxIau>gcc -v grxtest.c -L. -lout Reading specs from c:/djgpp/lib\specs gcc version 2.7.2.1 c:/djgpp/bin\cpp.exe -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 -Duni x - Di386 -DGO32 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=1 -D__unix__ -D__i386__ -D__GO3 2__ -D__MSDOS__ -D__DJGPP__=2 -D__DJGPP_MINOR__=1 -D__unix -D__i386 -D__GO32 -D_ _MSD OS -D__DJGPP=2 -D__DJGPP_MINOR=1 grxtest.c c:/djgpp/tmp\ccbaaaaa GNU CPP version 2.7.2.1 (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: c:/djgpp/include c:/djgpp/contrib/grx20/include /usr/local/include /usr/local/go32/include /usr/local/lib/gcc-lib/go32/2.7.2.1/include /usr/include End of search list. c:/djgpp/bin\cc1.exe c:/djgpp/tmp\ccbaaaaa -quiet -dumpbase grxtest.c -version -o c:/djgpp/tmp\cccaaaaa GNU C version 2.7.2.1 (80386, BSD syntax) compiled by GNU C version 2.7.2.1. c:/djgpp/bin\as.exe -o c:/djgpp/tmp\ccdaaaaa c:/djgpp/tmp\cccaaaaa c:/djgpp/bin\ld.exe c:/djgpp/lib\crt0.o -L. -Lc:/djgpp/lib c:/djgpp/tmp\ccdaaaa a -lout -Tdjgpp.djl -lgcc -lc -lgcc ./libout.a: could not read symbols: Archive has no index; run ranlib to add one C:\Documents\C\GrxIau>
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |