caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Dmitry Bely <dmitry.bely@gmail.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Statically linked win32 libcamlrun.lib?
Date: Tue, 20 Apr 2010 20:31:48 +0400	[thread overview]
Message-ID: <z2w90823c941004200931mf94b1d24wd0a192bf29fe0ea2@mail.gmail.com> (raw)
In-Reply-To: <u2p3b3449e01004200848raaa6a253n21d9bedc17f7ea1e@mail.gmail.com>

On Tue, Apr 20, 2010 at 7:48 PM, Lally Singh <lally.singh@gmail.com> wrote:
> On Thu, Apr 15, 2010 at 4:16 PM, Dmitry Bely <dmitry.bely@gmail.com> wrote:
>> On Thu, Apr 15, 2010 at 11:16 PM, Lally Singh <lally.singh@gmail.com> wrote:
>>> On Thu, Apr 15, 2010 at 2:59 AM, Dmitry Bely <dmitry.bely@gmail.com> wrote:
>>>> On Thu, Apr 15, 2010 at 3:39 AM, Lally Singh <lally.singh@gmail.com> wrote:
(...)
/DEFAULTLIB:"MSVCRT"> LINK : warning LNK4098: defaultlib 'LIBCMTD'
conflicts with use of
> other libs; use /NODEFAULTLIB:library
> LIBCMTD.lib(crt0.obj) : error LNK2019: unresolved external symbol
> _main referenced in function ___tmainCRTStartup
> .\dllunix.dll : fatal error LNK1120: 1 unresolved externals
>
> I verified that every object file in that directory was compiled with
> /MTd.  Is there something else I need to feed into the Makefile to
> make ocamlmklib do the right thing?

Nevertheless some of your files are compiled with /MD. Use /VERBOSE
linker option to find which one. I believe

FLEXLINK=flexlink -merge-manifest -link /VERBOSE

will do the job.

BTW, have you recompiled flexdll.c/flexdll_initer.c files in FlexDLL
directory with /MTd?

- Dmitry Bely


      reply	other threads:[~2010-04-20 16:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-14 23:39 Lally Singh
2010-04-15  6:59 ` [Caml-list] " Dmitry Bely
2010-04-15 19:16   ` Lally Singh
2010-04-15 20:06     ` Dmitry Bely
2010-04-15 20:16     ` Dmitry Bely
2010-04-20 15:48       ` Lally Singh
2010-04-20 16:31         ` Dmitry Bely [this message]

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=z2w90823c941004200931mf94b1d24wd0a192bf29fe0ea2@mail.gmail.com \
    --to=dmitry.bely@gmail.com \
    --cc=caml-list@yquem.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).