Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. [Solved] Using Third Party Library
Forum Updated to NodeBB v4.3 + New Features

[Solved] Using Third Party Library

Scheduled Pinned Locked Moved 3rd Party Software
4 Posts 3 Posters 2.8k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hi guys, I'm using Fedora Linux and I've installed "ne7ssh":http://www.netsieben.com/products/ssh/index.phtml (third party library) and all it dependencies using the yum package manager, so far so good. I started playing with this library but I couldn't go further, I receive the following error message when I try to compile:

    undefined reference to `ne7ssh::ne7ssh()' mysshclient.cpp

    Here is my code:

    @
    #include "mysshclient.h"
    #include "ui_mysshclient.h"

    #include "ne7ssh.h"

    MySSHClient::MySSHClient(QWidget *parent) : QMainWindow(parent), ui(new Ui::MySSHClient)
    {

    ui->setupUi(this);
    
    ne7ssh *ssh = new ne7ssh();
    

    }
    @

    Here is my .pro file:

    @
    #-------------------------------------------------

    Project created by QtCreator 2012-04-11T21:08:08

    #-------------------------------------------------

    QT += core gui

    TARGET = MySSHClient
    TEMPLATE = app

    SOURCES += main.cpp
    mysshclient.cpp

    HEADERS += mysshclient.h

    FORMS += mysshclient.ui
    @

    ...any clue about this?

    Thanks in advance!

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      I've moved your topic to the appropriate forum.

      You need to link to the library too. You can do that from the .pro file. Reference the documentation for the LIBS variable in the QMake manual.

      1 Reply Last reply
      0
      • V Offline
        V Offline
        veeraps
        wrote on last edited by
        #3

        Guess you missed out the third part library linkage in .PRO file.

        You may have to add the third party library details as below in your .PRO file for linking.

        LIBS += -L{Libraray_Path} -l{Library_Name}

        ~veeraps

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          Done!

          Thanks both of you!

          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