chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] libchicken-static.lib (MSVC) is not static, and one


From: Ivan Shcheklein
Subject: Re: [Chicken-users] libchicken-static.lib (MSVC) is not static, and one more question
Date: Mon, 8 Dec 2008 00:37:54 +0300

Hi Felix,

Thank you for the quick response on the issue!
 
> -- It seems that "libchicken-static.lib" is compiled with /MD[d] compiler
> option. Consequently it requires MSVCR**.DLL. I suppose, /MT[d] option
> should be used for "-static" version of the library.

Thanks, Ivan! I have modified the makefiles and will commit the changes
in a few minutes to trunk (that's chicken 4, if you need this for chicken 3,
then perhaps that attached patch can be used). I can not test this right now,
so please tell me if it doesn't work.

I've looked at the patch. It seems to me now that while static library compiled with "/MT" option is ok for me it can be unconvenient for someone who uses "/MD" to compile application.

I can suggest two ways:

1. Provide both versions. One should be built with /MT and one - with /MD.
2. Provide one version and use /Zl (L-small) option. As far as I know it works pretty well since VS 2005. However, I haven't tested it by myself yet.

BTW, when will Chicken 4 become available?

> -- Is it possible to compile "chicken-static.exe" version with current
> Makefile.msvc?

Runnning "make STATCBUILD=1 ..." will build you a statically linked
compiler.

I've got it. Thanks.

Regards,
Ivan Shcheklein

reply via email to

[Prev in Thread] Current Thread [Next in Thread]