Results 1 to 2 of 2

Thread: What should I use in Qt?

  1. #1
    Join Date
    May 2025
    Posts
    1
    Qt products

    Default What should I use in Qt?

    So I have downloaded the latest version of Qt Creator (5.something...) using the online Qt Downloader, and GMP version 6.2.0

    But I can't find any tutorials on how to use GMP library at all. And if I do, it's on Mac/Linux, which I can't use. It's unlike in python where we put the library folder in the working directory and it's done :\

    So, how can I write a "Hello world" program using GMP in Qt Creator? A program that calculates 10000!, or e^1000 to 10^4 decimal places, for example.

    Thank you for reading.

    Edit: actually I don't need to use GMP, any high-precision float library is okay. What should I use in Qt? Thank you.
    Shonda Boyle

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,318
    Thanks
    315
    Thanked 870 Times in 857 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: What should I use in Qt?

    Qt Creator is simply a code development IDE designed for developing Qt applications. It is not Qt, which is a set of libraries for abstracting graphics and operating system details to allow writing applications in an operating system independent way.

    If you want to develop applications with Qt Creator, you need to configure a toolchain: compiler, linker, debugger, etc. On Windows, Visual C++ or GCC are the most commonly used. If you have not done this, then you should start with the Qt Creator documentation. If you want to develop Qt applications, you'll also need to install Qt and configure Qt Creator to use it.

    If you want to use an external (non-Qt) library in a Qt application, then you will need to add it to your project configuration (cmake or qmake). This is also described in the documentation.

    Since GMP is mostly designed for use on a linux/Mac PC, you will probably have to build it yourself from the source code if you want to use it on Windows. From looking at the source code, that is a big job and off topic for this forum. If you search hard, you might be able to find a site with a pre-built Windows binary.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Wich MinGW Version should i use for QT 4.4.0?
    By raphaelf in forum Installation and Deployment
    Replies: 3
    Last Post: 27th May 2008, 14:29
  2. Why should I use pointers ?
    By probine in forum Newbie
    Replies: 5
    Last Post: 9th December 2006, 21:16
  3. Replies: 1
    Last Post: 21st June 2006, 09:12
  4. Replies: 2
    Last Post: 17th April 2006, 21:30
  5. Which path should I use?
    By Dark_Tower in forum Newbie
    Replies: 3
    Last Post: 8th April 2006, 12:09

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
  •  
Qt is a trademark of The Qt Company.