Results 1 to 2 of 2

Thread: Problem linking library

  1. #1
    Join Date
    Nov 2012
    Posts
    20
    Thanked 1 Time in 1 Post

    Default Problem linking library

    Hi all,

    I'm trying to get gmplib (compiled using Mingw and working fine with g++) working with qt. I've included the relevant header file for the library and tried to compile. It throws up this error:

    Qt Code:
    1. c:\mingw\include\gmpxx.h:1500: error: exception handling disabled, use -fexceptions to enable
    To copy to clipboard, switch view to plain text mode 

    I've tried include "QMAKE_CXXFLAGS +=-fexceptions" but the error still appears.

    Can anyone give me a hand?

    Thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Problem linking library

    This does not seem like a problem with linking the library. The error is obviously during compilation stage.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Problem linking against library
    By PowerPlate in forum Qt Programming
    Replies: 3
    Last Post: 15th October 2011, 02:45
  2. linking .so library in Qt on Mac Platform.
    By syclopse in forum Qt Programming
    Replies: 0
    Last Post: 18th August 2011, 10:50
  3. Help needed linking to library
    By StephenR in forum Qt Programming
    Replies: 4
    Last Post: 3rd July 2009, 08:50
  4. linking qt3 to a library
    By thebra in forum Newbie
    Replies: 10
    Last Post: 11th November 2006, 01:25
  5. import library linking
    By bruce1007 in forum Qt Programming
    Replies: 6
    Last Post: 19th May 2006, 10:27

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.