[comp.sys.apple2] LinkIIGS problem

acmfiu@serss0.fiu.edu (ACMFIU) (10/24/90)

The following is a link script I have for a program I have in Orca/C. When
I try to link it and LinkIIGS gets to linking in the 'main.a(@~ARRAYS)',
the computer crashes. The program is compiled with the large memorymodel.
Can anyone help?

------------------------ Script starts after here -------------------------
main.root
main.a
alignment.a
arithmetic.a
break.par.a
build.box.a
build.math.a
build.tok.a
copy.a
data.struc.a
destroy.a
display.a
dump.a
dynamic.a
equivalent.a
error.a
exp.token.a
executive.a
extension.a
file.a
font.a
get.token.a
hash.a
hyphen.a
inithyphen.a
intro.a
io.a
maintain.a
math.a
mode.a
packaging.a
page.a
prehyphen.a
printing.a
process.a
scan.a
semantic.a
shipout.a
stack.a
string.a
structures.a
sub.math.a
syntactic.a
table.a
token.a
vertical.a

-lseg chief_executive
 executive.a(@)
-lseg introduction
 intro.a(@)
-lseg input_and_output
 io.a(@)
-lseg string_handling
 string.a(@)
-lseg on_line_off_line_printing
 printing.a(@)
-lseg reporting_errors
 error.a(@)
-lseg arithmetic_with_scaled_dimensions
 arithmetic.a(@)
-lseg data_structures_for_boxes_and_friends
 structures.a(@)
-lseg displaying_boxes
 display.a(@)
-lseg destroying_boxes
 destroy.a(@)
-lseg copying_boxes
 copy.a(@)
-lseg semantic_nest
 semantic.a(@)
-lseg table_of_equivalents
 table.a(@)
-lseg hash_table
 hash.a(@)
-lseg saving_and_restoring_equivalents
 equivalent.a(@)
-lseg token_lists
 token.a(@)
-lseg introduction_to_syntactic_routines
 syntactic.a(@)
-lseg input_stacks_and_states
 stack.a(@)
-lseg maintaining_input_stacks
 maintain.a(@)
-lseg getting_next_token
 get.token.a(@)
-lseg expanding_next_token
 exp.token.a(@)
-lseg basic_scanning_subroutines
 scan.a(@)
-lseg building_token_lists
 build.tok.a(@)
-lseg conditional_processing
 process.a(@)
-lseg file_names
 file.a(@)
-lseg font_metric_data
 font.a(@)
-lseg shipping_pages_out
 shipout.a(@)
-lseg packaging
 packaging.a(@)
-lseg data_structures_for_math_mode
 data.struc.a(@)
-lseg subroutines_for_math_mode
 sub.math.a(@)
-lseg typesetting_math_formulas
 math.a(@)
-lseg alignment
 alignment.a(@)
-lseg breaking_paragraphs_into_lines
 break.par.a(@)
-lseg pre_hyphenation
 prehyphen.a(@)
-lseg hyphenation
 hyphen.a(@)
-lseg initializing_hyphenation_tables
 inithyphen.a(@)
-lseg breaking_vertical_lists_into_pages
 vertical.a(@)
-lseg page_builder
 page.a(@)
-lseg building_boxes_and_lists
 build.box.a(@)
-lseg building_math_lists
 build.math.a(@)
-lseg mode_independent_processing
 mode.a(@)
-lseg dumping_and_undumping_tables
 dump.a(@)
-lseg main_program
 main.root(@)
 main.a(@)
-lseg extensions
 extension.a(@)

-lseg:data array_data
 main.a(@~ARRAYS)

-lseg:data global_data
 main.a(@~GLOBALS)
 alignment.a(@~GLOBALS)
 arithmetic.a(@~GLOBALS)
 break.par.a(@~GLOBALS)
 build.box.a(@~GLOBALS)
 build.math.a(@~GLOBALS)
 build.tok.a(@~GLOBALS)
 copy.a(@~GLOBALS)
 data.struc.a(@~GLOBALS)
 destroy.a(@~GLOBALS)
 display.a(@~GLOBALS)
 dump.a(@~GLOBALS)
 dynamic.a(@~GLOBALS)
 equivalent.a(@~GLOBALS)
 error.a(@~GLOBALS)
 exp.token.a(@~GLOBALS)
 executive.a(@~GLOBALS)
 extension.a(@~GLOBALS)
 file.a(@~GLOBALS)
 font.a(@~GLOBALS)
 get.token.a(@~GLOBALS)
 hash.a(@~GLOBALS)
 hyphen.a(@~GLOBALS)
 inithyphen.a(@~GLOBALS)
 intro.a(@~GLOBALS)
 io.a(@~GLOBALS)
 maintain.a(@~GLOBALS)
 math.a(@~GLOBALS)
 mode.a(@~GLOBALS)
 packaging.a(@~GLOBALS)
 page.a(@~GLOBALS)
 prehyphen.a(@~GLOBALS)
 printing.a(@~GLOBALS)
 process.a(@~GLOBALS)
 scan.a(@~GLOBALS)
 shipout.a(@~GLOBALS)
 stack.a(@~GLOBALS)
 string.a(@~GLOBALS)
 structures.a(@~GLOBALS)
 sub.math.a(@~GLOBALS)
 syntactic.a(@~GLOBALS)
 table.a(@~GLOBALS)
 token.a(@~GLOBALS)
 vertical.a(@~GLOBALS)

-lib 2/orcaglib
-lib 2/syslib

-lseg libcode
 2/orcaglib
 2/syslib

-p
-l
-t exe
-o tex
------------------------------ End of script ---------------------------

alb@cognos.UUCP (Al Belyea) (10/25/90)

In article <1534@kluge.fiu.edu> acmfiu@serss0.fiu.edu (ACMFIU) writes:
>The following is a link script I have for a program I have in Orca/C. When
>I try to link it and LinkIIGS gets to linking in the 'main.a(@~ARRAYS)',
>the computer crashes. The program is compiled with the large memorymodel.
>Can anyone help?
>

`
<very big LinkIIGS script deleted>

Wow! that's one big program you got going there. An immediate problem that
I noticed is that your statements main.a, arithmetic.a, etc. occurred BEFORE
the main.a(@~GLOBALS), arithmetic.a(@~GLOBALS) etc. statements.
  
Just using arithmetic.a is telling LINKIIGS to put all object segments found
in arithmetic.a into their default load segments. What you want to do is 
specify the ~GLOBALS statements first, then do your other segments.
  
Why it crashes I don't know - it shouldn't. Also I do know that there's a bug
in the JOIN tool (that LINKIIGS and CRUNCHIIGS both use), but I don't know if
that would be causing your problem.

-- 
Allan Belyea              UUCP:                          3755 Riverside Dr.     
Cognos Incorporated       alb@cognos                     P.O. Box 9707         
(613) 738-1338 x3822      uunet!mitel!cunews!cognos!alb  Ottawa, Ontario       
"... when in a Desparate situation, challenge." Sun Tzu  CANADA  K1G 3Z4