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
Anonymous
Hmaada
# include <pthread.h> no such file
Hmaada
hh sorry
Hmaada
no such file or directory
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
Anonymous
Hmaada
euuh non
Anonymous
Anonymous
Why you do not just use C11 Threads?
https://en.cppreference.com/w/c/thread
Hmaada
Hmaada
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
Anonymous
Use <thread>
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.
Hmaada
Anonymous
Anonymous
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 ?
Hmaada
yeah i had it already installed
oldherl
Anonymous
Hmaada
because it take a lot of memory and 8Gb is not enough hh
Anonymous
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
oldherl
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
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
Anonymous
ruki
you can try it. 😄
Anonymous
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.
Anonymous
ruki
CyberEngineTweaks, TiltedOnline, tbox ... Here are some, https://github.com/xmake-io/awesome-xmake
Anonymous
Anonymous
Anonymous
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
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
Anonymous
keshav
Hi
Prince Of Persia
Rukiye
String x = 10;
int xx = xx.toInt(x);
Is this wrong to get int like this way?
Prince Of Persia
Prince Of Persia
It is dart or kotlin
Nameful
Rukiye
Opss i dont know which language is
Prince Of Persia
Nameful
Rukiye
:d just an example