delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/06/08/11:45:54

Date: Fri, 08 Jun 2001 18:40:23 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: heviaop AT ssdfe DOT com DOT ar
Message-Id: <557-Fri08Jun2001184022+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9
CC: djgpp AT delorie DOT com, tim DOT vanholder AT falconsoft DOT be
In-reply-to: <200106081327.JAA24053@pop1.lc-2.la.inter.net>
(heviaop AT ssdfe DOT com DOT ar)
Subject: Re: Has ar a limit? II
References: <200106081202 DOT IAA27634 AT pop3 DOT lc-2 DOT la DOT inter DOT net> (heviaop AT ssdfe DOT com DOT ar) <200106081327 DOT JAA24053 AT pop1 DOT lc-2 DOT la DOT inter DOT net>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "Orlando P. Hevia" <heviaop AT ssdfe DOT com DOT ar>
> Date: Fri, 8 Jun 2001 09:24:24 -0300
> 
> /* Common Block Declarations */
> 
> struct killcode_mup__1_ {
>     char dmup[612240];
> };
> 
> #define killcode_mup__1 (*(struct killcode_mup__1_ *) 
> &killcode_mup__)
> 
> /* Initialized data */
> 
> struct {
>     char e_1[612240];
>     } killcode_mup__ = { {' ', ' ', ' ', ' ', '2', '2', 
> '6', '1', ' ', ' ', 

Does any code outside this block data file reference the variable
killcode_mup__ ?  If not, the linker will not know your program needs
it.

> When I converted the BLOCK DATA to a subroutine with only 
> the data lines (change block data by subroutine, and call 
> the subroutine at beginning of main), the linker founds it 
> in library and all is OK. 

It figures: when you call a function, the linker _must_ link it into
the program.

- Raw text -


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