PocketMatrix forums

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

Problems building with Symbian S60 (3rd) : Odd linking error

Hi All,
I'm trying to build a project for symbian, and after fixing many errors i've managed to get to the final linker stages, which gives me the following error:

Code:
C:\Symbian\9.1\S60_3rd\Epoc32\Release\armv5\urel\usrt2_2.lib(callfirstprocessfn.o): In function `$p':
symaehabi\Callfirstprocessfn.cpp:(.text+0x48): undefined reference to `E32Main()'
...\bin\arm-none-symbianelf-ld.exe: release\Series 60 (3rd edition)\KnightLite.exe: hidden symbol `_Z7E32Mainv' isn't defined
...\bin\arm-none-symbianelf-ld.exe: final link failed: Nonrepresentable section on output


This also happens when building an edge builder project with the hello world sample files.

To fix this error, I removed (after referring to google) the following line from symbian-s60_e3rd.ini:
Code:
dynamiclib = "%sdkpath%\Epoc32\Release\armv5\urel\usrt2_2.lib"


This lead the hello world example to compile fine, although I've not tested the resulting executable to see if it works.

After removing this lib, when building my project, I then get the following linker error:
Code:

...\RELEASE\ARMV5\UREL\EEXE.LIB(uc_exe.o): In function `$b':
EUSER\epoc\arm\Uc_exe.cpp:(.text+0x14): undefined reference to `CallThrdProcEntry'
...\bin\arm-none-symbianelf-ld.exe: release\Series 60 (3rd edition)\KnightLite.exe: hidden symbol `CallThrdProcEntry' isn't defined
...\bin\arm-none-symbianelf-ld.exe: final link failed: Nonrepresentable section on output


I'm at an absolute loss as to why this is failing but the hello world example compiles, but I'm not convinced the example would actually run anyhow.

Any help on this matter would be greatly appreciated,
-g9
Hi,

The error sounds strange. Perhaps some files are corrupted in your SDK? Please try to download the maintenance release SDK from Nokia and see if it works better.
Hi, edge! And ideas, why could I get this error while building hello world sample?
Code:

1>epocroot = \Symbian\9.1\S60_3rd_MR\
1>* mwccsym2.exe -g -O0 -inline off -sym codeview_new ... -c .\code.cpp -o "Deb_S60_30M_WINSCW\code.obj"
1>..\..\Symbian4\Symbian4\include\edgedevice.h(60) : error: preprocessor #error directive
1>(included from:
1> C:\Symbian\test\Symbian4\Symbian4\include\edge.h:22
1> C:\Symbian\test\Symbian4\Symbian4\include\edgemain.h:15
1> C:\Symbian\test\Symbian5\Symbian5\code.cpp:2)
1>Errors caused tool to abort.


I'm using VS2005+Carbide.vs 3.01
Hi Ryumaster,

For Symbian you need to add a macro definition to your project file, otherwise EDGELIB doesn't recognize it's Symbian. Define 'SERIES60' in your project workspace before building.
Hi Edge,
Just FYI, the error sorted itself out. I had made a copy of the platform ini files for edgebuilder and made changes, but was not calling it. I was still calling the original.

Error's gone and it compiles fine, now I just need to get resources built into it with carbide.

Thanks for you help regardless,
-g9
Thanks, it is working perfectly now.