首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Symbian >

请教为什么S60_3rd_FP2_SDK下的opengl的例子程序编译后都无法运行

2012-04-07 
请问为什么S60_3rd_FP2_SDK下的opengl的例子程序编译后都无法运行请问为什么S60_3rd_FP2_SDK下的opengl的

请问为什么S60_3rd_FP2_SDK下的opengl的例子程序编译后都无法运行
请问为什么S60_3rd_FP2_SDK下的opengl的例子程序编译后都无法运行 提示错误system error -12

[解决办法]
Hi,

这个错误是说程序在运行时找不到某个路径。

// e32err.h
...
/**
System wide error code - in the context of file operations, a path
was not found.

A system wide error code indicates an error in the environment, or in
user input from which a program may recover.
*/
const TInt KErrPathNotFound=(-12);
...

你说的是这个目录下的示例程序吧?

"\Symbian\9.3\S60_3rd_FP2_SDK\S60CppExamples\OpenGLEx"

原因是bld.inf可能有一些指令指定导出某些资源文件到emulator的特定目录下,而有些IDE(例如CodeWarrior)并不处理这些指令,因此程序运行时会因为找不到这些目录(文件)报错。



解决方法一:编译程序时最好用命令行工具先编译一遍,然后再用IDE。
bldmake bldfiles
abld build winscw udeb

解决方法二:改用支持PRJ_EXPORTS指令的IDE,例如Carbide.c++

Regards

Ziteng Chen

热点排行