I have funny problem: I ported long time ago Bullet physics from MIT for Symbian and got it working fine. Even published a Dice games, which uses it. I compiled Bullet physics as a static library with few problems, which were easily solved.

Now I'm trying to make a second application, but I've run into problem first time I compile I get several errors from linker:

arm-none-symbianelf-ld: `.text._ZNK10btBoxShape32getPreferredPenetrationDirectionEiR9btVector3' referenced in section `.rodata' of \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\release\ARMV5\udeb\bulletcollision.lib(btCylinderShape.o): defined in discarded section `.text._ZNK10btBoxShape32getPreferredPenetrationDirectionEiR9btVector3[_ZNK10btBoxShape32getPreferredPenetrationDirectionEiR9btVector3]' of \S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\release\ARMV5\udeb\bulletcollision.lib(btCylinderShape.o)

but if I compile again everything goes well and application runs fine. If I change anything I have to again compile twice and program again runs fine.

I tried to search if anybody has ever had a similar problem, but didn't find anything.

Environment is 5th edition