Hmaada
hh ;) it for more suspense hh i'm actually try to run a program with threads on windows on visual studio 2019 and every thing seem to be good but when i run it in terminal it doesn't work
Hmaada
i use terminal because i have to add some arguments on argv[] like for example the number of threads
Hmaada
# include <pthread.h> no such file
Hmaada
hh sorry
Hmaada
no such file or directory
Anonymous
# include <pthread.h> no such file
I don't think POSIX thread be available on Windows with MSVC compiler.
Hmaada
on the editor it works correctly i linked the package that i installed from here https://sourceware.org/pthreads-win32/ to the includ and liberary repertories but i dont can do the same steps for the gcc compiler
Hmaada
euuh non
Anonymous
Why you do not just use C11 Threads? https://en.cppreference.com/w/c/thread
Hmaada
C11 ? what is it exactly ?
Hmaada
I had just found a solution now but in fact it still doesn't work with the terminal : https://stackoverflow.com/questions/48894212/visual-studio-2017-how-to-make-include-pthread-h-work/53011807
Hmaada
it seem like we have to link the library of the pthread package to something in the gcc
Anonymous
Use <thread>
Hmaada
Do not use pthread
ah and it do the same thing do you think ?
Anonymous
it seem like we have to link the library of the pthread package to something in the gcc
Look, if you are in MS Windows; it's madness to use the POSIX Threads. Because Microsoft already has the Win32Thread and doesn't have any official support of the POSIX Thread. By the way ... if you have not a good reason to directly using a Thread Manager Library, so don't do it. Just use the Standard Provided Thread Library.
Anonymous
I have recently compiled one of my program which uses pthread.h in WSL, it worked ..
Hmaada
a WSL? mmm like bash ?
Hmaada
oh reallly ?
Anonymous
a WSL? mmm like bash ?
Windows Subsystem for Lnux
Hmaada
yeah i had it already installed
Anonymous
Hmaada
because it take a lot of memory and 8Gb is not enough hh
oldherl
maybe for virtual machine
ok, why not just use dual boot
Janko Ⓥ
Then use a more lightweight Linux distribution. I'm on a netbook with Void Linux and can run an OpenBSD virtual machine
oldherl
Ubuntu isn't heavy weight
oldherl
Modern web browsers are heavy weight.
Janko Ⓥ
https://en.wikipedia.org/wiki/POSIX_Threads#POSIX_Threads_for_Windows
Hmaada
yes i allocat 2gb and 4 processors and when i run it my pc become so heavy
Hmaada
Use dual boot
nice idea but the problem is: will all the files be in the 2nd boot?
oldherl
I am afraid that is off-topic
oldherl
Just shrink your partition and install Ubuntu there in the free space
Hmaada
I am afraid that is off-topic
ah you think it will be work
Hmaada
i ll try it
ruki
Hello everyone, I wrote a C/C++ build tool which provides powerful dependency package integration. 😄 https://github.com/xmake-io/xmake
ruki
you can try it. 😄
Alberto
Guys how do I write this thing properly? if (ch == '.' || ch == ',' || ch != '\'\' || ch != \';' || ch != ':' || ch != '!' || ch != '?') {...}
Anonymous
you can try it. 😄
I tried, i like it. It reminded me of the Mason build system.
ruki
CyberEngineTweaks, TiltedOnline, tbox ... Here are some, https://github.com/xmake-io/awesome-xmake
ruki
I tried, i like it. It reminded me of the Mason build system.
meson only is a project generator, but xmake is make + package manager + project generator
Anonymous
meson only is a project generator, but xmake is make + package manager + project generator
And it's good 😁👍 (Especially that package manager part).
Anonymous
Try Regex (with std::regex).
Oh this is not good one
Anonymous
Oh this is not good one
(I prefer the POSIX Regex not std::regex, it's ugly.) And what is the good one?
ruki
xmake also support conan
ruki
and others, conda/vcpkg/brew/pacman/clib/dub ..
Anonymous
CMake + Conan is my choice
Right, i use them all the time.
ruki
xmake will call conan to install missing packages, then use them. not only find conan packages
ruki
only need add one line, like this add_requires("conan::openssl/1.1.1g")
Alberto
Its C, not C++
Anonymous
Please scholars How do C++ programming relates to Java and C# programming language
Anonymous
And how is jave programming language refers to as C#
Anonymous
Please scholars How do C++ programming relates to Java and C# programming language
It's not related until you need to port a library to other languages.
keshav
Hi
Rukiye
String x = 10; int xx = xx.toInt(x); Is this wrong to get int like this way?
Prince Of Persia
It is dart or kotlin
Rukiye
Opss i dont know which language is
Nameful
Rukiye
:d just an example