×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    10

    mwldsym2.exe: Internal linker error

    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.

    Any suggestions?

  2. #2
    Nokia Developer Expert
    Join Date
    Oct 2004
    Location
    Austin, TX USA
    Posts
    271

    Re: mwldsym2.exe: Internal linker error

    Are you using Express, or have you purchased the 1.1 Professional or Developer edition?

    Regards,

    Matt P.

  3. #3
    Registered User
    Join Date
    Nov 2006
    Posts
    10

    Re: mwldsym2.exe: Internal linker error

    Ah, sorry.

    I was actually using a command line version of mwldsym2 (from the UIQ3 SDK) with the following version info:

    Nokia Codewarrior Linker for Windows/x86.
    Copyright (c) 2005, Nokia Corporation
    All rights reserved.
    Version 3.2.3 build 446 (Build 446)
    Runtime Built: Aug 15 2005 08:08:32

    However, the same thing happens with the one from Carbide Express 1.0 which is:

    Nokia Codewarrior Linker for Windows/x86.
    Copyright (c) 2005, Nokia Corporation
    All rights reserved.
    Version 3.2.3 build 451 (Build 451)
    Runtime Built: Nov 14 2005 14:10:39

    Regards,

    Magnus

  4. #4
    Registered User
    Join Date
    Nov 2006
    Posts
    10

    Re: mwldsym2.exe: Internal linker error

    Hi again

    If you want additional bug-hunting info, here's some:

    I added some -progress and -verbose to the linker options and saw that it crashed when writing the "CodeViews". Then I found a debugging option called -nocodeview and when I tried it, it didn't write the CodeViews and didn't crash.

    It doesn't crash either if I don't use debugging (-g) at all so I guess an UREL build would work too.

    Thanks for the reply anyway and I hope someone can fix the bug with this info. I doubt I would be able to send a code sample (short of sending you the whole project) to trigger the bug, but if you want me to try something, just ask.

  5. #5
    Nokia Developer Expert
    Join Date
    Oct 2004
    Location
    Austin, TX USA
    Posts
    271

    Re: mwldsym2.exe: Internal linker error

    Thanks for the info, but I don't think that's enough to go on. Would you be willing to send me your entire project? If so, please message me and I'll contact you off-list.

    Regards,

    Matt P.

Similar Threads

  1. Replies: 3
    Last Post: 2007-01-18, 11:27
  2. please guide me for start to develop
    By InsOMniaCCodER in forum Symbian
    Replies: 5
    Last Post: 2005-01-04, 18:38
  3. Linker Error
    By amitaggarwal in forum Symbian
    Replies: 2
    Last Post: 2004-10-19, 10:22
  4. User break point error in Grid
    By ag24master in forum Symbian User Interface
    Replies: 0
    Last Post: 2003-08-07, 08:20

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×