caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Statically linked win32 libcamlrun.lib?
@ 2010-04-14 23:39 Lally Singh
  2010-04-15  6:59 ` [Caml-list] " Dmitry Bely
  0 siblings, 1 reply; 7+ messages in thread
From: Lally Singh @ 2010-04-14 23:39 UTC (permalink / raw)
  To: caml-list

Hello all,

  Is it possible to statically link libcamlrun.lib, so it'll work with
libcmtd.lib instead of msvcrt.dll?  I've tried:

FLEXLINK=flexlink -merge-manifest -link /nodefaultlib:msvcrt.lib -link
libcmtd.lib

in config/Makefile, and it all builds.  However, I still get:

libcamlrun.lib(sys.obj) : error LNK2019: unresolved external symbol
__imp__system referenced in function _caml_sys_system_command
libcamlrun.lib(floats.obj) : error LNK2019: unresolved external symbol
__imp__frexp referenced in function _caml_frexp_float
libcamlrun.lib(floats.obj) : error LNK2019: unresolved external symbol
__imp__modf referenced in function _caml_modf_float
libcamlrun.lib(startup.obj) : error LNK2019: unresolved external
symbol __imp__sscanf referenced in function _scanmult
libcamlrun.lib(startup.obj) : error LNK2019: unresolved external
symbol __imp___beginthread referenced in function _caml_main

Any thoughts?

Sadly I have to do it this way -- we're linking a -output-obj'd .obj
into our DLL (which must be statically linked to the runtime) and then
linking libcamlrun.lib to that -- or at least hoping to.

Thanks in advance for any help!

Cheers,
-Lally


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-04-20 16:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-14 23:39 Statically linked win32 libcamlrun.lib? 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 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).