Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. [Interpolation in c++]

[Interpolation in c++]

Scheduled Pinned Locked Moved Solved Qt 6
3 Posts 2 Posters 558 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    appdev
    wrote on 27 Jul 2022, 07:16 last edited by
    #1

    Good morning guys,

    I hope you're all doing well.

    So I wanted to use the lerp function to make an interpolation.

    But I got this error where "no member named lerp in std" however I made sure to include cmath.h.

    Is the lerp function deprecated ? Should I implement it by myself ?

    Thank you all.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 27 Jul 2022, 07:24 last edited by
      #2

      You need to enable C++20 support (and your compiler needs to be sufficiently new).

      In qmake, you can do this with:

      CONFIG += c++20
      

      (Z(:^

      1 Reply Last reply
      1
      • A Offline
        A Offline
        appdev
        wrote on 27 Jul 2022, 07:30 last edited by
        #3

        @sierdzio Thank you :D

        1 Reply Last reply
        0

        2/3

        27 Jul 2022, 07:24

        • Login

        • Login or register to search.
        2 out of 3
        • First post
          2/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved