CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
不看会后悔的Windows XP之经验谈 简单快捷DIY实用家庭影院
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  VC/MFC >  基础类

VC的配置问题

楼主iamwiner(烛泪)2005-09-21 15:43:16 在 VC/MFC / 基础类 提问

一个多线程程序  
  在Project   Setting   ->   C/C++   ->   CodeGeneration   ->   Use   Run-time   library  
  里无论选择Multithreaded   或者   Multithreaded   DLL都可以正常运行.  
  请问这两个选项有什么区别?  
   
  更头痛的是讲这种VC配置的书或者网上资料都很少,而实际做项目的过程中,这些配置又是极易引发错误的.  
   
  求助! 问题点数:20、回复次数:6Top

1 楼phoenix96_2000(Arcrest)回复于 2005-09-21 15:54:15 得分 12

multithreaded   dll的会使得最后的exe对msvcrt.dll有依赖Top

2 楼phoenix96_2000(Arcrest)回复于 2005-09-21 15:56:35 得分 0

/MT     Defines   _MT   so   that   multithread-specific   versions   of   the   run-time   routines   are   selected   from   the   standard   header   (.h)   files.   This   option   also   causes   the   compiler   to   place   the   library   name   LIBCMT.lib   into   the   .obj   file   so   that   the   linker   will   use   LIBCMT.lib   to   resolve   external   symbols.   Either   /MT   or   /MD   (or   their   debug   equivalents   /MTd   or   /MDd)   is   required   to   create   multithreaded   programs.    
   
  /MD   Defines   _MT   and   _DLL   so   that   both   multithread-   and   DLL-specific   versions   of   the   run-time   routines   are   selected   from   the   standard   .h   files.   This   option   also   causes   the   compiler   to   place   the   library   name   MSVCRT.lib   into   the   .obj   file.    
  Applications   compiled   with   this   option   are   statically   linked   to   MSVCRT.lib.   This   library   provides   a   layer   of   code   that   allows   the   linker   to   resolve   external   references.   The   actual   working   code   is   contained   in   MSVCR71.DLL,   which   must   be   available   at   run   time   to   applications   linked   with   MSVCRT.lib.  
   
  Top

3 楼jjiaming(阿熊)回复于 2005-09-21 15:57:03 得分 3

搬条板凳,坐下学习Top

4 楼i_noname(晚九朝五)回复于 2005-09-21 15:59:08 得分 5

也就是静态链接和动态链接的区别。  
  Multithreaded是静态的  
  Multithreaded   DLL是动态的Top

5 楼iamwiner(烛泪)回复于 2005-09-21 16:29:14 得分 0

哪儿有系统的介绍?Top

6 楼phoenix96_2000(Arcrest)回复于 2005-09-22 08:43:23 得分 0

msdn  
  knowledge   baseTop

相关问题

  • VC安装的最低配置
  • 用VC自动配置数据源(SQLConfigDataSource)
  • snmp++在VC++中如何配置?
  • 如何保存VC的界面配置?
  • 高分低级问题:VC++60如何读配置文件
  • VC中动态配置odbc数据原的问题。
  • 关于VC++中系统目录配置的问题?
  • 如何用VC编程建立和配置ODBC数据源?
  • vc的编译器如何配置为命令行的形式?
  • VC如何操作.ini配置文件?是哪个类?

关键词

  • dll
  • multithreaded
  • mt
  • run
  • time

得分解答快速导航

  • 帖主:iamwiner
  • phoenix96_2000
  • jjiaming
  • i_noname

相关链接

  • Visual C++类图书
  • Visual C++类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo