Win7+visual C++6.0裝過兩次c++,都因為Win7系統的兼容問題華麗麗的夭折了,每次我欣喜地用過2、3次之後,他就顯示Compiling,Error spawning cl.exe。流淚~請教了c++老師,然後終於有招了,孩子們可以看下:
打開vc界面 點擊VC“TOOLS(工具)”—>“Option(選擇)” —>“Directories(目錄)”重新設置“Excutable Fils、Include Files、 Library Files、Source Files”的路徑。首先得看你把visual 的整體文件放在哪兒。
如果你是按照初始路徑安裝vc6.0的,路徑應為:
executatble files:
C:/Program Files/Microsoft Visual Studio/Common/MSDev98/Bin
C:/Program Files/Microsoft Visual Studio/VC98/BIN
C:/Program Files/Microsoft Visual Studio/Common/TOOLS
C:/Program Files/Microsoft Visual Studio/Common/TOOLS/WINNT
include files:
C:/Program Files/Microsoft Visual Studio/VC98/INCLUDE
C:/Program Files/Microsoft Visual Studio/VC98/MFC/INCLUDE
C:/Program Files/Microsoft Visual Studio/VC98/ATL/INCLUDE
library files:
C:/Program Files/Microsoft Visual Studio/VC98/LIB
C:/Program Files/Microsoft Visual Studio/VC98/MFC/LIB
source files:
C:/Program Files/Microsoft Visual Studio/VC98/MFC/SRC
C:/Program Files/Microsoft Visual Studio/VC98/MFC/INCLUDE
C:/Program Files/Microsoft Visual Studio/VC98/ATL/INCLUDE
C:/Program Files/Microsoft Visual Studio/VC98/CRT/SRC
如果你裝在其他盤裡,則仿照其路徑變通就行。 關鍵是microsoft visual studio/ 後面的東西要相同。嗯哪,就是這樣啦,我已經試過了,完美解決Compiling Error spawning cl.exe問題。