Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. ld: symbol(s) not found for architecture x86_64
Qt 6.12 LTS is out! See what's new in the release blog

ld: symbol(s) not found for architecture x86_64

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 939 Views 1 Watching
  • 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.
  • TuniDevT Offline
    TuniDevT Offline
    TuniDev
    wrote on last edited by
    #1

    Undefined symbols for architecture x86_64:
    "ObjectiveActivity::setConfigSetting(QString)", referenced from:
    SystemManager::setConfigSetting(QString) in libOOP.a(systemmanager.o)

    //*********************************************************************** objectiveactivity.h
    #ifndef OBJECTIVEACTIVITY_H
    #define OBJECTIVEACTIVITY_H
    #include <QString>
    class ObjectiveActivity
    {
    public:
    ObjectiveActivity();
    static QString setConfigSetting(QString value);
    };
    #endif

    //************************************************************************ objectiveactivity.mm
    #include "objectiveactivity.h"
    #import <Foundation/Foundation.h>
    //#include <CoreFoundation/CoreFoundation.h>
    ObjectiveActivity::ObjectiveActivity (){}
    QString ObjectiveActivity::setConfigSetting(QString value){
    NSLog(@"Value of string is %@", value.data());
    return "Good night, Gracie!";
    }

    //**************************************************************************************************** some of my Setting .pro
    QT += sql core gui quick concurrent
    CONFIG += c++11
    DEFINES += QT_DEPRECATED_WARNINGS

    ios: {
    HEADERS +=../IOs/objectiveactivity.h
    OBJECTIVE_SOURCES +=
    ../IOs/objectiveactivity.mm
    OTHER_FILES +=
    ../IOs/objectiveactivity.mm
    QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.13
    }

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Are you building for iOS ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • TuniDevT Offline
        TuniDevT Offline
        TuniDev
        wrote on last edited by
        #3

        Yes, it's for iOS
        I find the solution

        ios: {
        HEADERS +=../IOs/objectiveactivity.h\

        OBJECTIVE_SOURCES +=\
        ../IOs/objectiveactivity.mm
        
        OTHER_FILES += \
        ../IOs/objectiveactivity.mm
        

        }
        //*******************************************objectiveactivity.h
        #pragma once
        #include <QObject>
        #include <QString>
        class ObjectiveActivity : public QObject{
        Q_OBJECT
        public:
        ObjectiveActivity();
        static QString setConfigSetting(QString value);
        };
        //*******************************************objectiveactivity.mm
        #import "objectiveactivity.h"
        #import <Foundation/Foundation.h>
        ObjectiveActivity::ObjectiveActivity (){}
        QString ObjectiveActivity::setConfigSetting(QString value){
        NSLog(@"Value of string is %@", value.toNSString());
        return "Good night, Gracie!";
        }

        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
        • Unsolved