作者tsaiminghan (nahgnimiast)
看板C_and_CPP
标题Re: [问题] 应用程式设定不正确
时间Tue Mar 24 22:11:22 2009
: 推 legnaleurc:Dependency Walker 03/24 20:01
: 推 chrisdar:1.Microsoft Visual C++ 2008 可转散发套件 03/24 20:45
: → chrisdar:2.方案属性->C/C++->程式码产生->执行阶段程式库 non-DLL 03/24 20:47
: → tsaiminghan:有2005的选项吗?知道的能不能说一下? 03/24 21:26
: 推 VictorTom:Project->### Property->Config...->C++->Code Gen.... 03/24 21:37
: → VictorTom:Runtime Library=>拉开, 看Debug/Release, 选没DLL那个. 03/24 21:38
: → VictorTom:仔细看了一下, 2008和2005一样, 只是小弟贴了英文版的. 03/24 21:38
之前看到的推文也是写这样,但是我在Runtime Library
只有
multi-threaded(/mt)
multi-thread debug(/mtd)
multi-threaded dll(/md)
multi-thread debug dll(/mdd)
选mt或mtd,对吗? 这样做,是不是程式就会把dll内容包进exe内?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 218.168.76.82
1F:推 VictorTom:对, debug版就是/mtd, release版就是/mt那个.... 03/24 22:47
2F:→ VictorTom:应该说会把VC自己的某些.dll含进去(具体哪些小弟不知) 03/24 22:48
3F:→ VictorTom:如果有额外需要LoadLibrary的dll还是要自己copy出来.... 03/24 22:48
4F:→ VictorTom:另外, 这样build出来的.exe档会比原来有dll的大几倍:) 03/24 22:49
5F:→ tsaiminghan:谢谢 03/25 00:47