Symbian随手札记——S60 2.1编译问题

ProblemLNK2019: unresolved external symbol __ftol2

 

Description: While building project in Series60_v21 with VS.net 2003, I got the error when execute emulator build. Building process as below:

 

Bldmake bldfiles                        is OK

Abld build wins udeb                error occurs in this building step

 

Explore: This problem is the SDK’s bug, it occurs when there is a explicit transfer from a float to an int,like below:

TInt inta = (TInt)(3.0);

 

Solution:

Find cl_win.pm in EPOC32/Tools, searching the line contain “/W4”, and then changing its content as below:

 

Before Changing:

         &main::Output(

                   "CLFLAGS =",

                            " /nologo",                          # suppress "sign-on" banner message

                            " /Zp4",                      # packs structures on 4 byte boundaries

                            " /GF"                                   # Pools strings and places them in read-only memory

                   );      

 

After Changing:

         &main::Output(

                   "CLFLAGS =",

                            " /nologo",                          # suppress "sign-on" banner message

                            " /Zp4",                      # packs structures on 4 byte boundaries

                            " /GF",                                  # Pools strings and places them in read-only memory

                            " /QIfist"

 

                   );

 

Reference: http://www3.symbian.com/faq.nsf/0/30398B3E9500A24D80256C7F00693A91?OpenDocument

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值