在這里把我經(jīng)常走的套路總結(jié)一下。
比如說我想在Win32下生成支持MFC的動(dòng)態(tài)鏈接庫s:
1。按裝ActivePerl。
2。編輯MPC\templates\vc7dll.mpt。
configurations?
=
?Debug?Release?
改為
configurations?=?Debug?Release?"MFC?Release"?"MFC?Debug"3.編輯ACE_wrappers下的ACE.mwc文件,改為如下:
workspace?{
????ace
}
4。運(yùn)行bin\mwc.pl -type vc7 -ti vc7dll ../ace.mwc
這一步會(huì)重新生成ace.sln
提醒一下,別忘了創(chuàng)建config.h文件,內(nèi)容類似如下:
#include?"config-win32.h"
#include?"config-win32-msvc-7.h"