i hv a dll project which contains only some pure c funcitons, the
project goes well in MSVC6, but when i complie it with vc++2005, the
output window told me: can not find libc.lib,
according to articles on internet, i know that single thread CRT
(libc.lib) will not support any longer, so i ignore the libc.lib in
the dll project seting, then i got errors like:
libcmt.lib(tidtable.obj) : error LNK2005: __encoded_null already
defined in MSVCRT.lib(MSVCR80.dll)

so, it seems that libcmt.lib conflict with msvcrt.lib, so there are
must one i nedd to ignore, the project complie well when i ignore
libcmt.lib, but that's not i want: the dll file depend on msvcr90.dll.

so i try ignore msvcrt.lib, i got erros like this:
error LNK2001: unresolved external symbol __imp__printf
wow, it seems no CRT anymore, no msvcrt.lib then no libcmt.lib?

what should i do to build a msvcr80-depend-free dll file with vc+
+2005?
possible?

Re: can vc++2005 make a dll file that not relay on msvcr80.dll? by Alex

Alex
Sat May 26 05:14:13 CDT 2007

"jyan" wrote:
> what should i do to build a msvcr80-depend-free dll file
> with vc+
> +2005?
> possible?


In project's settings go to C++ -> Code Generation section
and select static Runtime Library instead of DLL.

Alex


Re: can vc++2005 make a dll file that not relay on msvcr80.dll? by jyan

jyan
Sat May 26 07:06:28 CDT 2007

On May 26, 6:14 pm, "Alex Blekhman" <x...@oohay.moc> wrote:
> "jyan" wrote:
> > what should i do to build a msvcr80-depend-free dll file
> > with vc+
> > +2005?
> > possible?
>
> In project's settings go to C++ -> Code Generation section
> and select static Runtime Library instead of DLL.
>
> Alex

it works.
many thanks, Alex.

regards,
jyan