Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. How could I make a C++ compiler for a game engine like how QT does it?

How could I make a C++ compiler for a game engine like how QT does it?

Scheduled Pinned Locked Moved Unsolved Game Development
4 Posts 2 Posters 593 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
    AI_Messiah
    wrote on 6 Nov 2022, 23:00 last edited by
    #1

    I am not making a replacement for QT. I just want to make a game engine with C++ scripting. I have looked for C++ compilers and not found much that makes sense. If QT is open source, then why can't I us a compiler like Visual Studio like QT does?

    C 1 Reply Last reply 7 Nov 2022, 00:45
    0
    • A AI_Messiah
      6 Nov 2022, 23:00

      I am not making a replacement for QT. I just want to make a game engine with C++ scripting. I have looked for C++ compilers and not found much that makes sense. If QT is open source, then why can't I us a compiler like Visual Studio like QT does?

      C Offline
      C Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on 7 Nov 2022, 00:45 last edited by Chris Kawa 11 Jul 2022, 00:46
      #2

      I just want to make a game engine with C++ scripting

      C++ is not a typical scripting language like lua or python. It needs to be compiled into a binary first. You either compile it along with your engine or make a plugin system - compile the code into a shared library and load/unload it at runtime.

      I have looked for C++ compilers and not found much that makes sense

      There are couple of major C++ compilers out there - MSVC, GCC and Clang. There are bunch of others, like the Intel's ICC, but these three are the most common ones. What do you want to know about them exactly?

      If QT is open source, then why can't I us a compiler like Visual Studio like QT does?

      Sorry, what you said here makes no sense. Qt is a C++ library. You can compile it with any C++ compiler you want. Visual Studio is not a compiler. It's an IDE (Integrated Development Environment). It comes with the MSVC compiler, but you can use others with it too. I've no idea what Qt being open source has anything to do with it. Visual Studio and MSVC are Microsoft's products. Qt is a Qt Company's product.
      You can use MSVC however you want and it doesn't have to do anything with Qt.

      1 Reply Last reply
      2
      • A Offline
        A Offline
        AI_Messiah
        wrote on 7 Nov 2022, 21:36 last edited by
        #3

        I mean MSVC as the compiler.

        C 1 Reply Last reply 7 Nov 2022, 21:41
        0
        • A AI_Messiah
          7 Nov 2022, 21:36

          I mean MSVC as the compiler.

          C Offline
          C Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on 7 Nov 2022, 21:41 last edited by
          #4

          I mean MSVC as the compiler

          Ok, so you asked why you can't use it.
          Well, you can.

          1 Reply Last reply
          0

          2/4

          7 Nov 2022, 00:45

          • Login

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