pthread.h on windows
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!
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.
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.