×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    22

    mwldsym2.exe: Undefined symbol: 'int E32Main(void)

    Hi, i'm on an application, that work fine on s60 3rd ed.
    Now i would like compile it with 2nd ed.
    I created a new project in carbide, based on 2nd ed, copyng all files i need, change .mmp file, but i don't understand why i have this error :

    Code:
    "\Symbian\8.1a\S60_2nd_FP3\EPOC32\BUILD\WORKSPACE\DIRECTORYMONITORING\GROUP\DIRECTORYMONITORING\WINSCW\DIRECTORYMONITORING.WINSCW" UDEB
    mwldsym2.exe: Undefined symbol: 'int E32Main(void) (?E32Main@@YAHXZ)'
    mwldsym2.exe: referenced from 'int startupThread(void) (?startupThread@@YAHXZ)' in up_exe.cpp:211 (EEXE.LIB)

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,688

    Re: mwldsym2.exe: Undefined symbol: 'int E32Main(void)

    If you check the error message, it says E32Main is missing from your code. This is the word-for-word interpretation.
    However if your code is a GUI application, you should specify DirectoryMonitoring.app as TARGET and app as TARGETTYPE in the .mmp file. In this case you will need E32Dll method.
    In case of mixed 2nd-3rd source code of a GUI application, DirectoryMonitoring.cpp (probably) could be something like this:
    Code:
    #ifdef EKA2
    #include <eikstart.h>
    #endif
    #include "DirectoryMonitoringApp.h"
    
    EXPORT_C CApaApplication* NewApplication()
    {
        return new CDirectoryMonitoringApplication;
    }
    
    #ifndef EKA2
    
    GLDEF_C TInt E32Dll(TDllReason /*aReason*/)
    {
    	return KErrNone;
    }
    
    #else
    
    GLDEF_C TInt E32Main()
    {
        return EikStart::RunApplication( NewApplication );
    }
    
    #endif

  3. #3
    Registered User
    Join Date
    Oct 2008
    Posts
    22

    Re: mwldsym2.exe: Undefined symbol: 'int E32Main(void)

    Thanks for your reply. I followed your advices, an now application compiles, it work on my n70, but not on emulator. I think is an error that occurs after emulator sturtup but before application statup.
    Have you got any idea?

Similar Threads

  1. Fail to build syexpat 1.3 under 2nd FP3
    By harry_zhang in forum Symbian
    Replies: 10
    Last Post: 2010-03-19, 10:24
  2. Linking error in Carbide.C++
    By senoctar in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 2
    Last Post: 2008-09-21, 14:03
  3. linking error
    By dakosurf in forum Symbian
    Replies: 1
    Last Post: 2008-03-27, 22:45
  4. mwldsym2.exe: Undefined symbol in Carbide.C++ 1.3
    By ValentinK in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 4
    Last Post: 2008-03-14, 15:23
  5. Need one HTTP client example
    By vinayakak in forum Symbian Networking & Messaging (Closed)
    Replies: 15
    Last Post: 2008-01-06, 06:44

Posting Permissions

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