delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/07/20/16:43:46

Message-Id: <200007202036.QAA21000@websmtp1.bellsouth.bigfoot.com>
To: Tasci Synx <nospam AT puckbell DOT net>, djgpp AT delorie DOT com
Subject: Re:Linking Object Libraries
From: "Lets Go Canes!" <LetsGoCanes AT webmail DOT bellsouth DOT net>
Date: Thu, 20 Jul 2000 16:44:35 -0400
X-Originating-IP: 192.58.204.122
Reply-To: djgpp AT delorie DOT com

Hi.

At Thu, 20 Jul 2000 12:23:09 -0700, you wrote:
>gpp -Lc:\windows\desktop\tcl\code\library -lgame -g mufcode.o mufcoder.o
>-o  muf.exe

The linker is reading your library and checking for any
routines it provides that satisfy unresolved references.
Since you have not yet loaded any object modules, you
don't have any unresolved references.  Next, it loads
mufcode.o and mufcoder.o.  *Now* it has unresolved
references!  But since there are no libraries listed
*after* the objects (other than the implicit default
libraries), it can't resolve them.

Try "gpp -g -o muf.exe mufcode.o mufcoder.o -Lc:\windows\desktop\tcl\code\library -lgame", and I think you will get a better result.

---------------
Let's Go Canes!

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019