🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.programmer.codewarrior
Article #530

Re: Which of two functions gets linked?

#530
From: MW Ron
Date: Tue, 13 Jul 2004 18:42
21 lines
1725 bytes
In article <user02.20.mdt-0ED944.16165012072004@corp.supernews.com>,
 Mark Taylor <user02.20.mdt@spamgourmet.com> wrote:

>Hi all,
>
>When an identical function is defined in a .lib file and in a .c file, 
>is there a way to control which one is linked in by the PowerPC Mach-O 
>linker?  It seems to be random and uncontrollable, but perhaps I am 
>missing something?

The source file should ALWAYS be used before the library even if the 
link order is different are you seeing something other than that?

Ron

-- 
Metrowerks Community Forum is a free online resource for developers 
to discuss CodeWarrior topics with other users and Metrowerks' staff
        --   http://www.metrowerks.com/community  --

 Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com
Technical Details
Message-ID: <mwron-4EF244.14421113072004@news.newsguy.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!tethys.csu.net!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!mwron
References: <user02.20.mdt-0ED944.16165012072004@corp.supernews.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f635e,43a4bcab7f7311b8
X-Google-Thread: 10bcce,43a4bcab7f7311b8
X-Google-Attributes: gidf635e,gid10bcce,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!tethys.csu.net!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!mwron
From: MW Ron <mwron@metrowerks.com>
Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac
Subject: Re: Which of two functions gets linked?
Date: Tue, 13 Jul 2004 14:42:11 -0400
Organization: Metrowerks
Lines: 21
Message-ID: <mwron-4EF244.14421113072004@news.newsguy.com>
References: <user02.20.mdt-0ED944.16165012072004@corp.supernews.com>
NNTP-Posting-Host: p-180.newsdawg.com
User-Agent: MT-NewsWatcher/3.3b1 (PPC Mac OS X)
X-Face: )mY~XFHLw)UOW!W#[Ljvxq6Ja7(g'#F0-g*&puNxR8hEJkd@Oue/70^.)I78\
        (%a%&Id211u"l/t.llWo/M|?15XUlx9!IGkdWiEmcasiyg"k;Q9[~XuE+`t2"*n(>nmm
        @L/q,TjMd5+H{gASEPDR^$