×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Dec 2005
    Posts
    121

    undefined reference __aeabi_atexit __dso_handle

    Hello,
    I'm building an application for Symbian OS9.1 using Carbide.C++ 1.1
    (Series60 SDK 3rd MR GCCE compiler). I get two errors on linking:
    undefined reference to `__aeabi_atexit'
    undefined reference to `__dso_handle'

    The project builds correctly for WINS UDEB target using Carbide.C++

    The project has been created importing the MMP File.

    IMPORTANT:

    I can build the same EXE (the same MMP File) without problems (for GCCE UDEB and WINS UDEB targets) using:
    1. SDK command-line tools
    2. CodeWarrior 3.1.1

    Conclusion: The project only fails when building in
    "Carbide.C++ / GCCE" Combination.

    It's urgent. I need to use Carbide.C++ 1.1 OnDevice Debug feature to debug the application (In Emulator works successfully, but the app crash on the
    phone).

    Thank You.

    NOTE: I don't have the license to use on device debug in CodeWarrior.

  2. #2
    Registered User
    Join Date
    Apr 2006
    Posts
    34

    Re: undefined reference __aeabi_atexit __dso_handle

    Hi AlfredoRU,
    Did you got solution for the problem?
    I am also facing the same problem. Please let me know if u got solution.

    Thanks,
    Giri.

  3. #3
    Regular Contributor
    Join Date
    Dec 2005
    Location
    Bangalore, India
    Posts
    90

    Re: undefined reference __aeabi_atexit __dso_handle

    This is related to static objects...
    Can you check in your code where you use any static objects(if any)...
    because, When compiling C++ code with static objects some compiler inserts a call to __cxa_atexit() with __dso_handle as one of the arguments.


    also you can try including the following include paths in your project mmp files
    \Epoc32\include\libc
    \Epoc32\include\libc\sys
    Best Regards
    -Boumitran

  4. #4
    Regular Contributor
    Join Date
    Dec 2005
    Posts
    121

    Re: undefined reference __aeabi_atexit __dso_handle

    Yes!

    You are right!

    I have the following code:

    In header file:

    Code:
    public:
        static RSocketServ NIAsocketServ;
        static RConnection NIAconnection;
    In .cpp file:

    Code:
    RSocketServ S60IPManager::NIAsocketServ;
    RConnection S60IPManager::NIAconnection;
    I use these class variables to share the same Internet Connection across all the application.

    The strange issue is that the same project builds perfectly in
    Command Line and CodeWarrior 3.1

    The "undefined reference __aeabi_atexit __dso_handle" problem only occurs in Carbide.c++ 1.1

    Do Carbide.c++ 1.1 and CodeWarrior 3.1 use the same c++ compiler/linker?
    The same compiler/linker arguments?

    Thank You! I will try your suggestion.

  5. #5
    Registered User
    Join Date
    Apr 2006
    Posts
    34

    Re: undefined reference __aeabi_atexit __dso_handle

    Hi,

    See the post http://discussion.forum.nokia.com/fo...ad.php?t=91657
    You can find the solution posted by me.

    Thanks,
    Giri.

  6. #6
    Regular Contributor
    Join Date
    Dec 2005
    Posts
    121

    Re: undefined reference __aeabi_atexit __dso_handle

    Hello!

    I have made you a question in the thread you provided.

    Thank You

Similar Threads

  1. Undefined reference error
    By owensul in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 4
    Last Post: 2011-03-14, 08:48
  2. carbide build problem help please
    By berkcekisbas in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2006-09-26, 19:41
  3. Whats missing?
    By imrank in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-08-28, 07:22
  4. 3rd edition: undefined reference
    By iulian_moldovan in forum Symbian
    Replies: 2
    Last Post: 2006-06-20, 14:11
  5. Replies: 5
    Last Post: 2006-05-31, 07:23

Posting Permissions

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