1. 问题描述,当使用wfopen 打开文件,用fclose关闭时,可能会有内存泄露。
原因及解决:If you're using the estlib standard library and not Open C libc, you need to call CloseSTDLIB() at the end of your program to free the library state data that gets allocated the first time it is needed. (http://discussion.forum.nokia.com/forum/showthread.php?t=176793&highlight=wfopen)
2. 问题描述:编译 armi, thumb 版本的时候可能遇到 Undefined reference to '__fixunssfsi' 的连接错误。
原因及解决: 代码中有浮点数隐式转换成无符号数,而这个转换在这两个版本下是通过 __fixunsdfsi 转换的,在库中却找不到。解决办法是加入静态库egcc.lib(http://developer.symbian.com/wiki/display/KBSDN/Undefined+reference+to+'__fixunssfsi')
3. 问题描述:编译真机版的时候,可能遇到类似 FATAL: can't create *.o, *.def 等如下这样的错误
Assembler messages:
FATAL: can't create ..//..//..//..//..//..//..//Symbian//9.1//S60_3rd_MR_2//EPOC32//BUILD//Projects//Smaato//Trunk//Client//Symbian//Series_60 //DatabaseEngine//DATABASEENGINES60_30//GCCE//UREL//SymbianRecordsDatabase.o: No such file or directory
src//Symbianrecordsdatabase.cpp:69: fatal error: error writing to -: Invalid argument compilation terminated.
原因及解决: 一般是路径和文件名过长了导致的,改短路径就可以解决。
4. 如何设置 eclipse 或 carbide c++ 的默认语言。
修改 eclipse.ini 或 Carbide.c++.2.3.ini 中间的 -Duser.language=en 就显示英文,设置为中文就是-Duser.language=zh,也会影响它上面的插件语言,比如subclipse的语言。
5. 如果用到 libc 里的函数,需要加入库 estlib.lib, 否则会莫名其妙的crash掉, 比如 malloc 会死掉等。
symbian 诡异问题
最新推荐文章于 2023-04-26 08:24:37 发布