Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Undefined reference
QtWS25 Last Chance

Undefined reference

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 492 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.
  • J Offline
    J Offline
    joejack77
    wrote on last edited by
    #1
    This post is deleted!
    jsulmJ 1 Reply Last reply
    0
    • J joejack77

      This post is deleted!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @joejack77 said in Undefined reference:

      qmake6 file

      Do you mean in your pro file?
      It should work then. Did you do a complete rebuild?
      Please post your pro file.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      J 1 Reply Last reply
      1
      • jsulmJ jsulm

        @joejack77 said in Undefined reference:

        qmake6 file

        Do you mean in your pro file?
        It should work then. Did you do a complete rebuild?
        Please post your pro file.

        J Offline
        J Offline
        joejack77
        wrote on last edited by joejack77
        #3

        @jsulm
        Yeah, i did full rebuild.
        Sure. Here is my pro file:

        include (src.pri)
        
        #
        # Check
        #
        server:ccl{
            error("Please specify only one target.");
        }
        
        #
        # Project properties 
        #
        
        QT      += core
        QT      += network
        QT      += sql
        
        CONFIG  += c++17
        
        #
        # VERSION CONFIG
        #
        message( "Generating ProjectConfig.h ..." )
        versionconfig.input = ProjectConfig.h.qmake
        versionconfig.output = ../include/ProjectConfig.h
        QMAKE_SUBSTITUTES += versionconfig
        
        
        TEMPLATE = app
        
        DESTDIR = ../bin
        
        SOURCES += ProjectVersion.cpp \
                   main.cpp
        HEADERS += types.h
        
        #
        # Server
        #
        server {
            QT      += sql
            QT      -= gui
            CONFIG  += console
            CONFIG  -= app_bundle
        
            DEFINES += SERVER
        }
        
        #
        # ccl
        #
        ccl {
            QT += gui
            QT += widgets
            QT += sql
        
        
            DEFINES   += CCL
            RESOURCES += ../FDP.qrc
        }
        
        #
        # Target properties
        #
        server:TARGET = fdpd
        ccl:TARGET    = fdpccl
        
        
        Pl45m4P 1 Reply Last reply
        0
        • J joejack77

          @jsulm
          Yeah, i did full rebuild.
          Sure. Here is my pro file:

          include (src.pri)
          
          #
          # Check
          #
          server:ccl{
              error("Please specify only one target.");
          }
          
          #
          # Project properties 
          #
          
          QT      += core
          QT      += network
          QT      += sql
          
          CONFIG  += c++17
          
          #
          # VERSION CONFIG
          #
          message( "Generating ProjectConfig.h ..." )
          versionconfig.input = ProjectConfig.h.qmake
          versionconfig.output = ../include/ProjectConfig.h
          QMAKE_SUBSTITUTES += versionconfig
          
          
          TEMPLATE = app
          
          DESTDIR = ../bin
          
          SOURCES += ProjectVersion.cpp \
                     main.cpp
          HEADERS += types.h
          
          #
          # Server
          #
          server {
              QT      += sql
              QT      -= gui
              CONFIG  += console
              CONFIG  -= app_bundle
          
              DEFINES += SERVER
          }
          
          #
          # ccl
          #
          ccl {
              QT += gui
              QT += widgets
              QT += sql
          
          
              DEFINES   += CCL
              RESOURCES += ../FDP.qrc
          }
          
          #
          # Target properties
          #
          server:TARGET = fdpd
          ccl:TARGET    = fdpccl
          
          
          Pl45m4P Offline
          Pl45m4P Offline
          Pl45m4
          wrote on last edited by
          #4

          @joejack77

          Is that you here and isn't that the same issue?


          If debugging is the process of removing software bugs, then programming must be the process of putting them in.

          ~E. W. Dijkstra

          Christian EhrlicherC 1 Reply Last reply
          0
          • Pl45m4P Pl45m4

            @joejack77

            Is that you here and isn't that the same issue?

            Christian EhrlicherC Offline
            Christian EhrlicherC Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Pl45m4 You are correct...

            Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
            Visit the Qt Academy at https://academy.qt.io/catalog

            1 Reply Last reply
            0

            • Login

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