K
K
Kruger2017-09-24 13:32:02
C++ / C#
Kruger, 2017-09-24 13:32:02

How to create a C project in Visual Studio 2017?

Good time of the day, is it possible to create such a project. You need to use the pthread.h library, in fact, behind this project, you need or need another IDE ....

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
res2001, 2017-09-24
@res2001

pthread is a POSIX library, i.e. nix. In Windows, as an additional abstraction over the native interface, it comes with mingw or cygwin.
Windows has its own threads, WinAPI with MSDN will help you.
If you really need or need a cross-platform tool, then you can use pthread, but for this it’s really easier to switch to another IDE. For example Eclipse + mingw.
And for cross-platform it is better to use something like boost or Qt - both there and there have their own cross-platform implementations of threads. At the same time, in niks they will use pthread, and in Windows they will use screw threads, and you don’t have to delve into the intricacies of implementing threads in WinAPI or pthread, only delve into the intricacies of boost or Qt.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question