选择project菜单=〉settings...=>General=>Microsoft Foundation Classes=>Use MFC in a Static Library 
再进行编译即可。