vc6 在英文操作系统下编译带中文路径的vc工程

我装的操作系统是win2003英文版,装了个英文版的vc6.

某日在"E:\新工程测试"目录下创建了一个vc工程,但是怎么都不能build, 提示如下:

Compiling...
StdAfx.cpp
e:\疴工踌测牯\test1\stdafx.cpp(0) : fatal error C1033: cannot open program database 'e:\疴工踌测牯\test1\debug\vc60.pdb'
Error executing cl.exe.

Test1.exe - 1 error(s), 0 warning(s)

为什么vc6编译不能识别中文路径啊? 用google搜索了一下,发现vc6的编译程序 cl.exe 会根据控制面板里“区域和语言选项”的设置,用相关的代码页对路径进行解释。

原先我的设置是:

[Standards and formats]: English(United Kingdom)
[Location]: China
[Language for non-Unicode programs]: Chinese (PRC)

改成以下设置,问题解决

[Standards and formats]: Chinese (PRC)
[Location]: China
[Language for non-Unicode programs]: Chinese (PRC)

原文地址:https://www.cnblogs.com/finema/p/1651603.html