You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For instance every time I try to submit stage 3 for Redis for C++, I keep getting "undefined reference to pthread_create". I have the header files and all of the dependencies installed, so I am just confused why this keeps happening when I try to push to origin master. Is there something completely obvious I am missing?
The CMakeLists change fixed the issue! As for why the issue arose in the first place, when I try to compile the Server file using g++(without the use of ./spawn_redis_server.sh) I also get the error of undefined reference to pthread_create. I have to add the flag -pthread in order to actually compile the program. Maybe this has something to do with it? This seems to correspond with the fix in the CMakeLists file which also has to link the pthread library.
Thanks for @SamirOsAbdalla for reporting!
The text was updated successfully, but these errors were encountered: