I'm trying to port a project to Symbian and instead of adding several hundreds of files to a Carbide project, I'm compiling large parts of the code as before with gcc (for the simulator) and have then tried to make both a DLL and a LIB out of that code for later linking with the Symbian OS .EXE.
This worked well up to a certain point, but when I included more and more of the code into the DLL (or LIB), the Symbian linker fails with:
mwldsym2.exe: Internal linker error (please report at <http://www.forum.nokia.com>):
mwldsym2.exe: while executing in file LinkCV5.c: 'WriteModules' (line 2087)
mwldsym2.exe: Error writing file:
mwldsym2.exe: The handle is invalid.
It doesn't seem to be a code size problem, the .LIB isn't more than ~6MB. I've tried to only add some parts of the code and stub the rest, but it's very time consuming and I fail to find any logic as to when the linker error happens.