Reputation: 1
so I'm using visual studio 2019 and I installed pthread package but whenever I run my code the following error pops up "'timespec': 'struct' type redefinition "
the most common solution I found is to put #define HAVE_STRUCT_TIMESPEC
before including pthread.h but whenever I do so two errors occur:
1- LNK2019 unresolved external symbol __imp__pthread_create referenced in function _main
2- 1 unroslved externals
I know this problem is common but I didn't find any solution to the two new errors specified.
Upvotes: 0
Views: 206