Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Dec 2006

    Linking problem with extension library in Qt


    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.


  2. #2
    Nokia Developer Expert
    Join Date
    Jun 2010

    Re: Linking problem with extension library in Qt

    Believe it or not, catching bad_alloc made this linker error disappear for me when using an "extension" library.

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

  3. #3
    Registered User
    Join Date
    Oct 2008

    Re: Linking problem with extension library in Qt


    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. 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