9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Charles Forsyth <forsyth@terzarima.net>
To: fernanbolando@mailc.net, 9fans@cse.psu.edu
Subject: Re: [9fans] more porting questions from newbie
Date: Wed, 15 Mar 2006 09:33:11 +0000	[thread overview]
Message-ID: <42f248c10082c80aef63afeaa9e995a3@terzarima.net> (raw)
In-Reply-To: <1d5d51400603150005j5bd1f786w628ce11d823a77d5@mail.gmail.com>

> I found a thread in 9fans archive about undefined _main in .a libs
> ****** from 9fans archive ***************************
> andrey mirtchovski wrote:
>> cc   -o ocamlrun  prims.o libcamlrun.a
>> _main: undefined: main in _main

it is complaining that `main' is undefined but called by
a function `_main'.  `_main' is in the C startup code, and is
provided by the C library.  i'm not sure
why the linker doesn't pick up `main' if it is in the library.

if you give ape's cc the -v option, it will give a little trace
of loading of object files and libraries, which might help



  reply	other threads:[~2006-03-15  9:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-15  8:05 Fernan Bolando
2006-03-15  9:33 ` Charles Forsyth [this message]
     [not found] ` <84fbfa983a05af9590554e9b75b87a3e@terzarima.net>
2006-03-16  5:33   ` Fernan Bolando

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=42f248c10082c80aef63afeaa9e995a3@terzarima.net \
    --to=forsyth@terzarima.net \
    --cc=9fans@cse.psu.edu \
    --cc=fernanbolando@mailc.net \
    /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).