symbian 诡异问题

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 会死掉等。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值