TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: Bill Dickhaus 70325,523 (X)
from: LARRY OLSON 72227,3467
date: 1993-04-18 03:58:43
subject: #linking

#: 17930 S12/OS9/68000 (OSK)
    18-Apr-93  03:58:43
Sb: #linking
Fm: LARRY OLSON 72227,3467
To: Bill Dickhaus 70325,523 (X)

Bill,
   Just to let you know, I finally figured out how to break these C programs up
and link them later. I was pulling my hair out for the last couple of days,
with all these  errors. I could not figure out what the
problem was. As a last resort, I pulled out the Kernigham & Ritchie book, and
there it was. I had defined all the global variables in the main module, as
STATIC. Somewhere I had gotten the idea that variables defined outside a
function, and defined as static, were global. Static & Extern, just don't mix.
  So now I can get back to finishing this program up, without worrying about
bumping into that 64k limit,(hopefully).

larry

There is 1 Reply.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.