×

Discussion Board

Results 1 to 10 of 10

Thread: Linking error

  1. #1
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    78

    Linking error

    This might have been discussed here.

    With carbide 1.3.1 I get the error:

    mwldsym2.exe: Error creating file: TLkoe.exe
    mwldsym2.exe: The process cannot access the file because it is being used by another process

    when compiling and linking the exe and debugging with emulator. The application is closed but still remains locked?

    With 1.2 You could do this(eg replace the exe in fly).

    Br
    Hannu

  2. #2
    Registered User
    Join Date
    Dec 2005
    Posts
    1,236

    Re: Linking error

    Hi,

    Try killing your emulator and compile again. I hope it would resolve your problem.
    Regards,
    Sriky

  3. #3
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: Linking error

    Yep, I remember having the epoc.exe running even when the emulator was closed, and it indeed keeps the resource files etc. open.

  4. #4
    Registered User
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043

    Re: Linking error

    Hi,
    Even I have encountered such errors while I was debugging in the emulator through IDE. I guess then even if the debug session has ended you will still get such errors best way is to close your IDE and open it agin so that all the open handlers are released.
    Maximus
    S60 Developer
    Impossible is nothing

  5. #5
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    78

    Re: Linking error

    Quote Originally Posted by symbianyucca View Post
    Yep, I remember having the epoc.exe running even when the emulator was closed, and it indeed keeps the resource files etc. open.
    I am not sure if You understood my problem.

    With 1.2 it was possible to start emulator just couple of times / day and compileand link your project many times. You saved many hours of waiting. This way
    -start emulator
    -debug, correct, compile and link.
    -debug, correct, compile and link.
    -debug, correct, compile and link.
    -quit emulator


    Now when I switched to 1.3 this is not possible.
    with 1.3:
    -start emulator
    -quit emulator
    -debug, correct, compile and link.

    -start emulator
    -quit emulator
    -debug, correct, compile and link.

    -start emulator
    -quit emulator
    -debug, correct, compile and link.

    This is slow.
    -----------

    Killing epoc is just the thing I do not want.

    Hannu

  6. #6
    Registered User
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043

    Re: Linking error

    Hi,
    If your application is a simple application which does not modify any component which is loaded in the system during bootup you can complie your code with the epoc launched in the debug mode. But sometimes if any of your component is having such loading dependency then on compilation you will get such errors like "used by another process".
    Maximus
    S60 Developer
    Impossible is nothing

  7. #7
    Registered User
    Join Date
    Dec 2005
    Posts
    1,236

    Thumbs up Re: Linking error

    Quote Originally Posted by salesh View Post
    I am not sure if You understood my problem.

    With 1.2 it was possible to start emulator just couple of times / day and compileand link your project many times. You saved many hours of waiting. This way
    -start emulator
    -debug, correct, compile and link.
    -debug, correct, compile and link.
    -debug, correct, compile and link.
    -quit emulator


    Now when I switched to 1.3 this is not possible.
    with 1.3:
    -start emulator
    -quit emulator
    -debug, correct, compile and link.

    -start emulator
    -quit emulator
    -debug, correct, compile and link.

    -start emulator
    -quit emulator
    -debug, correct, compile and link.

    This is slow.
    -----------

    Killing epoc is just the thing I do not want.

    Hannu
    Hi Salesh,

    You are correct it is even possible with Carbide. You will not be able to compile and link when you application is running on epoc. So could try closing your application on epoc and then try compiling it should compile and link properly. Ofcourse some times in doesnot . But in most cases it does give it a try.
    Regards,
    Sriky

  8. #8
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,335

    Re: Linking error

    Hannu, check this if it helps: Running the emulator from Carbide.c++
    Nokia Developer Wiki Moderation team

  9. #9
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    78

    Re: Linking error

    Quote Originally Posted by sriky27 View Post
    Hi Salesh,

    You are correct it is even possible with Carbide. You will not be able to compile and link when you application is running on epoc. So could try closing your application on epoc and then try compiling it should compile and link properly. Ofcourse some times in doesnot . But in most cases it does give it a try.
    OK, i am using this method successfully with carbide 1.2. When I press ctrl/alt/B compile starts with targeted build and links the new version.

    But unfortunately this does not work with 1.3.1 .
    Ctrl/alt/B starts (Invoking abld command) and it cannot link. I do not even have to start my own exe and it's locked. Just starting the epoc to debug the exe locks it? Or is it the carbide that locks it?

    I just do not understand.

    Hannu

  10. #10
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    78

    Re: Linking error

    Quote Originally Posted by kiran10182 View Post
    Hannu, check this if it helps: Running the emulator from Carbide.c++
    I think we are doing the process almost like in this paper. Only difference is that we not switching to c++-perspective before compiling ( and this should not make any difference).

    I have noticed also that editing the UI forces to restart the epoc.

    Hannu

Similar Threads

  1. CPbkContactEditorDlg customize
    By asdfghjkl_asdfghjkl in forum Symbian C++
    Replies: 5
    Last Post: 2008-08-05, 02:56
  2. compilation error: identifier redeclared
    By netra in forum Symbian C++
    Replies: 2
    Last Post: 2007-06-22, 10:42
  3. carbidec++ helloworld project problem
    By akhin in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 0
    Last Post: 2007-03-11, 12:40
  4. code warrior problems
    By mayankkedia in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 2
    Last Post: 2004-10-25, 06:59
  5. camera app compilation problems
    By basarim in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2003-12-31, 18:16

Posting Permissions

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