×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    May 2005
    Posts
    15

    Angry Silly, can't debug codewarrior executable in emulator

    I get the Metrowerks CodeWarrior error message: Couldn't locate the program entry point, program will not stop on launch. Haven't touched anything starting building simple sample EXE with a NEW EXE stationery.
    HELP. Can't try it myself anymore. The code as follows.


    #ifndef __CommonFramework_H
    #define __CommonFramework_H

    #include <e32base.h>
    #include <e32cons.h>

    _LIT(KTxtEPOC32EX,"EXAMPLES");
    _LIT(KTxtExampleCode,"Symbian OS Example Code");
    _LIT(KFormatFailed,"failed: leave code=%d");
    _LIT(KTxtOK,"ok");
    _LIT(KTxtPressAnyKey," [press any key]");

    // public
    LOCAL_D CConsoleBase* console; // write all your messages to this
    LOCAL_C void doExampleL(); // code this function for the real example

    // private
    LOCAL_C void callExampleL(); // initialize with cleanup stack, then do example
    #pragma message("E32Main compiled.")
    GLDEF_C TInt E32Main() // main function called by E32
    {
    __UHEAP_MARK;
    CTrapCleanup* cleanup=CTrapCleanup::New(); // get clean-up stack
    TRAPD(error,callExampleL()); // more initialization, then do example
    __ASSERT_ALWAYS(!error,User::Panic(KTxtEPOC32EX,error));
    delete cleanup; // destroy clean-up stack
    __UHEAP_MARKEND;
    return 0; // and return
    }
    #pragma message("callExampleL compiled.")
    LOCAL_C void callExampleL() // initialize and call example code under cleanup stack
    {
    console=Console::NewL(KTxtExampleCode,TSize(KConsFullScreen,KConsFullScreen));
    CleanupStack::PushL(console);
    TRAPD(error,doExampleL()); // perform example function
    if (error)
    console->Printf(KFormatFailed, error);
    else
    console->Printf(KTxtOK);
    console->Printf(KTxtPressAnyKey);
    console->Getch(); // get and ignore character
    CleanupStack::PopAndDestroy(); // close console
    }

    #endif



    // testexe.cpp
    //
    // Created: 04/15/06
    // Author:
    // Copyright (c) . All rights reserved.
    //

    #include "CommonFramework.h"
    #pragma message("Please ensure that you read the ReadMe file.")

    // do the example
    LOCAL_C void doExampleL()
    {
    _LIT(KHelloWorldText,"Hello testexe!\n");
    console->Printf(KHelloWorldText);
    }

    mwccsym2 -c -g -wchar_t off -align 4 -warnings on -w nohidevirtual, nounusedexpr -msgstyle gcc -enum int -str pool -exc ms
    -trigraphs on -O0 -inline off -nostdinc -g -d __SYMBIAN32__ -d __SERIES60_30__ -d __SERIES60_3X__ -d __CW32__ -d __WINS__ -d __WINSCW__
    -d __EXE__ -d _DEBUG -d _UNICODE -d __SUPPORT_CPP_EXCEPTIONS__ -prefix C:\Symbian\9.1\S60_3rd\EPOC32\include\variant\Symbian_OS_v9.1.hrh
    -i- -i "C:\_SYMBIAN\testexe" -i "C:\Symbian\9.1\S60_3rd\EPOC32\include" -i "C:\Symbian\9.1\S60_3rd\epoc32\include\variant" -i
    "C:\Symbian\9.1\S60_3rd\EPOC32\RELEASE\WINSCW\UDEB" -i "C:\Program Files\Nokia\CodeWarrior\Symbian_Support\Win32-x86 Support\Libraries\Win32
    SDK" "C:\_SYMBIAN\testexe\testexe.cpp" -o "C:\_SYMBIAN\testexe\testexe_Data\WINSCW_UDEB\ObjectCode\testexe.o"

    mwccsym2 -c -wchar_t off -align 4 -warnings on -w nohidevirtual, nounusedexpr -msgstyle gcc -enum int -str pool -exc ms -trigraphs
    on -O0 -inline off -nostdinc -g -d __SYMBIAN32__ -d __SERIES60_30__ -d __SERIES60_3X__ -d __CW32__ -d __WINS__ -d __WINSCW__ -d
    __EXE__ -d _DEBUG -d _UNICODE -d __SUPPORT_CPP_EXCEPTIONS__ -prefix C:\Symbian\9.1\S60_3rd\EPOC32\include\variant\Symbian_OS_v9.1.hrh
    -i- -i "C:\_SYMBIAN\testexe" -i "C:\Symbian\9.1\S60_3rd\EPOC32\include" -i "C:\Symbian\9.1\S60_3rd\epoc32\include\variant" -i
    "C:\Symbian\9.1\S60_3rd\EPOC32\RELEASE\WINSCW\UDEB" -i "C:\Program Files\Nokia\CodeWarrior\Symbian_Support\Win32-x86 Support\Libraries\Win32
    SDK" "C:\_SYMBIAN\testexe\testexe_UID_.cpp" -o "C:\_SYMBIAN\testexe\testexe_Data\WINSCW_UDEB\ObjectCode\testexe_UID_.o"

    Warning : CommonFramework.h

    Warning : 24: note: E32Main compiled.

    Warning : CommonFramework.h

    Warning : 35: note: callExampleL compiled.

    Warning : testexe.cpp

    Warning : 9: note: Please ensure that you read the ReadMe file.

    mwccsym2 -c "C:\_SYMBIAN\testexe\testexe_Data\WINSCW_UDEB\ObjectCode\testexe_UID_.o" -progress

    mwccsym2 -c "C:\_SYMBIAN\testexe\testexe_Data\WINSCW_UDEB\ObjectCode\testexe.o" -progress

    mwldsym2.exe -msgstyle gcc -stdlib "C:\Symbian\9.1\S60_3rd\EPOC32\RELEASE\WINSCW\UDEB\EEXE.LIB" -m "?_E32Bootstrap@@YGXXZ"
    -subsystem windows -g "C:\Symbian\9.1\S60_3rd\EPOC32\RELEASE\WINSCW\UDEB\euser.lib" -o "C:\Symbian\9.1\S60_3rd\EPOC32\RELEASE\WINSCW\UDEB\testexe.exe"
    -noimplib -l "C:\_SYMBIAN\testexe\testexe_Data\WINSCW_UDEB\ObjectCode" -search "testexe.o" "testexe_UID_.o"

  2. #2
    Registered User
    Join Date
    May 2005
    Posts
    15

    Re: Silly, can't debug codewarrior executable in emulator

    Even more than that.
    I have installed Carbide.c++ expresso.
    The same problem.
    I have all application debugiing all right, but i don't need them.
    I need executables debugging now.
    I don't doubt that all of you guys solved or never have this problem.
    Please, teach me how to debug executables from IDE (CW, C.c++E).

  3. #3
    Registered User
    Join Date
    May 2005
    Posts
    15

    Re: Silly, can't debug codewarrior executable in emulator

    It's OK. I solved the problem. The problem is in SDK 3.0.
    2.0 FP 1 works All Right.

Similar Threads

  1. Newbie saying Hi & emulator / debug question.
    By MartinCHarvey in forum Symbian C++
    Replies: 1
    Last Post: 2005-08-02, 10:57
  2. Replies: 1
    Last Post: 2004-12-12, 02:16
  3. Replies: 3
    Last Post: 2004-06-01, 15:44
  4. SocketError when opening Emulator (debug) version
    By zarwil in forum Bluetooth Technology
    Replies: 0
    Last Post: 2004-05-11, 18:15
  5. WAP Push Support in Series 60 Devices
    By yorgens in forum Mobile Web Site Development
    Replies: 3
    Last Post: 2003-06-11, 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
  •