Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Creating pthread in qt creator
Forum Updated to NodeBB v4.3 + New Features

Creating pthread in qt creator

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 971 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.
  • P Offline
    P Offline
    pirpi
    wrote on 6 Nov 2014, 12:13 last edited by
    #1

    Hi all, I am a newbie, I just want to send some messages from pthreads thread function to qt GUI. I am creating thread like this pthread_create(&thread_read, NULL,&read_data,NULL);.
    But I am getting following error “ read_data is not declared in this scope”.
    I have added QMAKE_CXXFLAGS+= -std=gnu++0x -pthread -lpthread LIBS += -L/usr/include -pthread

    in .pro file in the project. Could anybody help me with this?

    Thanks
    pirpi

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 6 Nov 2014, 12:29 last edited by
      #2

      Hi,

      Please don't post the same question in multiple sub-forum, especially if unrelated.

      "Duplicate":http://qt-project.org/forums/viewthread/49362

      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

      1/2

      6 Nov 2014, 12:13

      • Login

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