🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

linking/including

#470
From: Steven Daedelus
Date: Wed, 12 Jan 2005 20:58
11 lines
1638 bytes
Hi all,

Help a fairly clueless guy: Let's say I add source1.cpp to a project. It 
refers to functionX defined in source2.cpp. Now, if I put include 
"source2.cpp" at the top of source1.cpp, it works ok. If I add 
source2.cpp to the project, it tells me that functionX is undefined.

Perhaps I just don't understand linking. Could someone explain this to 
me?

sp
Technical Details
Message-ID: <sdaedelus-89709B.15582112012005@comcast.dca.giganews.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f635e,8ec5fd6a4335841b,start
X-Google-Thread: 10bcce,8ec5fd6a4335841b,start
X-Google-Attributes: gidf635e,gid10bcce,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 12 Jan 2005 14:57:53 -0600
From: Steven Daedelus <sdaedelus@ira.gov>
Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac
Subject: linking/including
Organization: Irish Republican Army
User-Agent: MT-NewsWatcher/3.4 (PPC Mac OS X)
Date: Wed, 12 Jan 2005 15:58:21 -0500
Message-ID: <sdaedelus-89709B.15582112012005@comcast.dca.giganews.com>
Lines: 11
NNTP-Posting-Host: 24.91.165.114
X-Trace: sv3-tGZVRtPvBwLQ3W7pqUL1jwLdDkTC/uftcypFceQaqssgB51f91aLeks3DmTxIymo6CdVCuC7OXx2oA4!6lz2UnvEy2QB/jnZ8B7umXgHfFwqpc+08V2xr64QNp4LjocxvJGhjuYgrrK2wmkqozoLLmH9zyH/!H0TBpQAJSDnRhtSMhjrMvlshmw+efA==
X-Complaints-To: abuse@comcast.net
X-DMCA-Complaints-To: dmca@comcast.net
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.22