Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. pthread.h on windows
Forum Updated to NodeBB v4.3 + New Features

pthread.h on windows

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 3.6k 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.
  • R Offline
    R Offline
    randuser54321
    wrote on last edited by
    #1

    I've inherited some code and tried to compile using QT 4.2.1
    I assume it compiled previously
    When trying to compile the code I get the following errors:
    error: C1083: Cannot open include file: 'unistd.h': No such file or directory
    error: C1083: Cannot open include file: 'pthread.h': No such file or directory
    error: C1083: Cannot open include file: 'sys/time.h': No such file or directory

    Initial digging suggests I should use Cygwin or MinGW? Any thoughts?

    Thanks for your help!

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

      Hi and welcome to devnet,

      Rather MinGW but even so you're not guaranteed that your project will build without an itch. What is pthread used for ? If the project is already using Qt, QThread is worth checking.

      A side note, you seem to be starting development with a very old version of Qt. You should consider updating to the latest Qt 5 (currently 5.8.0) but if you are locked to Qt 4 then consider updating to the latest and last version which is 4.8.7.

      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
      • R Offline
        R Offline
        randuser54321
        wrote on last edited by
        #3

        @SGaist

        Thanks for your response!
        I'll check out MinGW and reply back to see if that works.
        Regarding version: I made a mistake there. I am Using the latest version of QT. The 4.2.1 refers to the creator version.

        I will check out QThread. I would like to first get this code running.

        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