Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User djagadish7's Avatar
    Join Date
    Dec 2006
    Posts
    34
    Hi,

    I have been develpoing applications in Qt using NokiaQtSDK. Now, I have to use an extension library (let's call it xyz.lib) which is supposed to work with NokiaQtSDK. I have put the xyz.lib in "\NokiaQtSDK\Symbian\SDK\epoc32\release\ARMV5\urel\" and xyz.h in "\NokiaQtSDK\Symbian\SDK\epoc32\include" folder.

    When I try to use any function belonging to xyz..lib in my application (which works fine otherwise) gives following linking error.

    \NokiaQtSDK\Symbian\SDK\epoc32\release\ARMV5\urel\xyz.lib(xyz.o).ARM.extab+0xe4): undefined reference to `typeinfo for std::bad_alloc'

    Can someone please help me solve this problem. By googling on this error I understand that it could be due to different GCC version used for building xzy.lib and what is on my system... but not sure.

    Thanks in advance.

    -DJ7

  2. #2
    Nokia Developer Expert OviBron's Avatar
    Join Date
    Jun 2010
    Posts
    24
    Believe it or not, catching bad_alloc made this linker error disappear for me when using an "extension" library.

    try
    {
    Xyz* xyz = new Xyz();
    // ...
    }
    catch (const std::bad_alloc&)
    {
    // Error handling here...
    }

  3. #3
    Registered User dusan.beblavy's Avatar
    Join Date
    Oct 2008
    Posts
    1
    Hi

    The problem is in GCCE compiler. If library was compiled with RVCT.

Similar Threads

  1. Problem linking with Qt mobility sensor API.
    By jscurtis in forum [Archived] Qt Mobility Project
    Replies: 1
    Last Post: 2010-07-11, 12:12
  2. Problem linking to a static library in the emulator
    By -chris- in forum Symbian C++
    Replies: 8
    Last Post: 2008-06-10, 14:24

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved