Linking Error on FP2
| Wed, 2006-02-22 02:22 | |
|
Now I got 2 programs. And I decided to create a library for the first program and then call the library subroutine on the application. Every thing works as expected on the EPOC program.
But when I try to compile for the real device (abld build armi urel). Millions of linkgin errors come out as follows. 1. undefined reference to 'sprintf' 2. relocation truncated to fit: ARM_26 sprintf The error comes out not only from sprintf. Also comes from memset, free... which I used those commands on the library. The machine I used is a Nokia 6630 (Symbian S60 OS version is 8.0). And the developer platform used is S60 2nd Edition, Feature Pack 2. Thanks for the help. |
|






Forum posts: 148
Forum posts: 14
Forum posts: 44
Forum posts: 14
Forum posts: 148
Forum posts: 14
Let me say some more details on my mmp file.
On the mmp file for the library
TARGET abc.lib
TARGETTYPE lib
UID 0
LIBRARY estlib.lib euser.lib ecrt0.lib
On the application my mmp looks like this
TARGETTYPE app
UID 0x100039CE 0x0DCAEAB9
LIBRARY fbscli.lib
LIBRARY esock.lib
LIBRARY insock.lib
LIBRARY estlib.lib
LIBRARY bitgdi.lib
LIBRARY avkon.lib
LIBRARY eikcoctl.lib
LIBRARY eikcore.lib
LIBRARY cone.lib
LIBRARY apparc.lib
LIBRARY euser.lib
LIBRARY efsrv.lib
LIBRARY estor.lib
LIBRARY ws32.lib
LIBRARY abc.LIB
of coz I included all the source path as well as the source file
Forum posts: 109
eqiaotea suggests a rearrangement in the mmp file:
http://forum.newlc.com/index.php/topic,3901.0.html
would this help i your case?
br, Marcel
Forum posts: 1233
When you build a static lib, any references to other libs is not linked into it, but you have to add those libraries too when you want to use your static lib.
That you didn't get this problem in wins, I think is because the wins compiler handles that differently, since you then in practice are building win32 exes and not symbian exes.