Version française
Home     About     Download     Resources     Contact us    
Browse thread
Problems linking in an object file produced with "ocamlopt -c -output-obj"
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Corey O'Connor <coreyoconnor@g...>
Subject: Re: Problems linking in an object file produced with "ocamlopt -c -output-obj"
> _caml_atom_table
> _caml_static_data_end
> _caml_static_data_start
> _caml_code_area_end
> _caml_code_area_start

Umm.. Well. I changed asmrun/startup.c from:
char * caml_static_data_start, * caml_static_data_end;
char * caml_code_area_start, * caml_code_area_end;

To:
char * caml_static_data_start, * caml_static_data_end = NULL;
char * caml_code_area_start, * caml_code_area_end = NULL;

And *poof*, the errors went away. 

This is under Mac OS X 10.4 for what it's worth. Maybe something
changed with GCC 4.0 effecting the export of extern variables with no
initializers?

-Corey O'Connor