pb编译错误: Codegen compilation error

早上到另一台WINDOWS2003的机子上进行编译的时候发现了无法编译,显示PB编译错误提示:

'Codegen compilation error, See file C:/Temp/*.log'

后来上GOOGLE搜索了一下,发现了一篇英文网站的文章,解决的办法就是修改系统环境变量的临时目录.具体设置办法如下:

Click on the "Environment Variables" button at the bottom of the tab. You are going to change the value for the temp variables in 4 places.

At the top, under "User Variables for user john.smith":

Click on the "TEMP" variable and change the value to "C:/TEMP". You do this by clicking the EDIT button.

Do the same for the "TMP" variable.

Next, under "System variables", change the values of the "TEMP" variable and the "TMP" variable to "C:/TEMP".

Make sure you have a "C:/TEMP" directory. You may need to reboot.

意思就是:

打开控制面板-系统-高级-环境变量-将上面的两个用户变量改成:C:/TEMP.

在下面的系统变量找到变量:TEMP 和 TMP ,也改成C:/TEMP.

另外,在C:上要建立TEMP目录.

重新启动后,解决问题.可以编译了.

估计的原因可能是系统原来默认的临时目录太长了.导致PB编译代码的时候发生错误.这应该算是PB的一个BUG.
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值