caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Corey O'Connor" <coreyoconnor@gmail.com>
To: Ocaml <caml-list@inria.fr>
Subject: Re: Problems linking in an object file produced with "ocamlopt -c -output-obj"
Date: Mon, 16 May 2005 23:14:24 -0700	[thread overview]
Message-ID: <c12912350505162314389f00ad@mail.gmail.com> (raw)
In-Reply-To: <c1291235050516113140367a1a@mail.gmail.com>

> _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


  reply	other threads:[~2005-05-17  6:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-16 18:31 Corey O'Connor
2005-05-17  6:14 ` Corey O'Connor [this message]
2005-05-17  6:52   ` [Caml-list] " skaller
2005-05-18  8:02     ` Marcin 'Qrczak' Kowalczyk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c12912350505162314389f00ad@mail.gmail.com \
    --to=coreyoconnor@gmail.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).