PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Linker Error on Symbian S60 2nd edition FP3

Hello,

I have a little problem to compile/link helloworld sample on Symbian S60 2nd edition FP3.

I use Carbide C++ 1.2 + Symbian SDK S60-2 FP3.

Thanks for your help.

Regards
David

Code:
***Performing targeted build for configuration... Phone Release (ARMI) [S60_2nd_FP3].
C:\WINDOWS\system32\cmd.exe /c abld target ARMI UREL -v
make -r -f "\Symbian\8.1a\S60_2nd_FP3\EPOC32\BUILD\MOBILE\HELLOWORLD\WORKSPACE_S60_E2ND-FP3\ARMI.make"

...
Cfile.cpp: undefined reference to `FileName__3DllRt4TBuf1i256'
Cfile.cpp: relocation truncated to fit: ARM_26 FileName__3DllRt4TBuf1i256
make: *** [TARGETHELLOWORLD] Error 2
...

***Invoking makesis.exe ....
C:\Symbian\8.1a\S60_2nd_FP3\epoc32\tools\makesis.exe C:\Mobile\Helloworld\workspace_s60_e2nd-fp3\helloworld.pkg C:\Mobile\Helloworld\workspace_s60_e2nd-fp3\hellodcs.sis -v

C:\Symbian\8.1a\S60_2nd_FP3\epoc32\tools\makesis.exe C:\Mobile\Helloworld\workspace_s60_e2nd-fp3\helloworld.pkg C:\Mobile\Helloworld\workspace_s60_e2nd-fp3\hellodcs.sis -v
Processing C:\Mobile\Helloworld\workspace_s60_e2nd-fp3\helloworld.pkg...
Created C:\Mobile\Helloworld\workspace_s60_e2nd-fp3\hellodcs.sis

***SIS Creation Complete


***Errors were detected in build. See the Problems or Console view for details.

Total Time: 1 sec
Hi David,

To fix the linker error, you need to add the following libraries to the project (mmp) file:
LIBRARY edll.lib
LIBRARY edllstub.lib
LIBRARY egcc.lib
Hi,

Thanks it works better, but i probably need another library :?

In my mmp i have for the moment
LIBRARY estlib.lib
LIBRARY euser.lib
LIBRARY apparc.lib
LIBRARY cone.lib
LIBRARY eikcore.lib
LIBRARY eikcoctl.lib
LIBRARY avkon.lib
LIBRARY ws32.lib
LIBRARY efsrv.lib
LIBRARY etel.lib
LIBRARY apgrfx.lib
LIBRARY plpvariant.lib
LIBRARY fbscli.lib
LIBRARY bitgdi.lib
LIBRARY esock.lib
LIBRARY insock.lib
LIBRARY bluetooth.lib
LIBRARY btextnotifiers.lib
LIBRARY btmanclient.lib
LIBRARY sdpagent.lib
LIBRARY sdpdatabase.lib
LIBRARY hal.lib
LIBRARY etel3rdparty.lib
LIBRARY edll.lib
LIBRARY edllstub.lib
LIBRARY egcc.lib

STATICLIBRARY edge.lib
STATICLIBRARY edgerender.lib
STATICLIBRARY zlib.lib

and the linker said :
Code:
gcc -s ... ".\..\code\helloworld.cpp"
UP_DLL_FILE.o(.text+0x8):Up_dll_file.cp: relocation truncated to fit: ARM_26 UserSvr::DllFileName(int, TDes16 &)
if exist "..\..\..\SYMBIAN\8.1A\S60_2ND_FP3\EPOC32\BUILD\MOBILE\HELLOWORLD\WORKSPACE_S60_E2ND-FP3\HELLOWORLD\ARMI\UREL\HELLOWORLD.in" del ".."
make[1]: *** [..\..\..\SYMBIAN\8.1A\S60_2ND_FP3\EPOC32\RELEASE\ARMI\UREL\HELLOWORLD.APP] Error 1
ar cr ..\..\..\SYMBIAN\8.1A\S60_2ND_FP3\EPOC32\BUILD\MOBILE\HELLOWORLD\WORKSPACE_S60_E2ND-FP3\HELLOWORLD\ARMI\UREL\HELLOWORLD.in HELLOWORLD.o
make: *** [TARGETHELLOWORLD] Error 2


Any new wonderfull solution :o ?
Hi David,

For Symbian, the library order may have influence. It's best to put the 3 libraries at the top of the list (above estlib.lib).
Re Hi,

Yes, it works better.
thanks

Regards
David