Building on mac os using flag -DLIBUS_USE_LIBUV still gives error #886
-
clang -DLIBUS_NO_SSL -DLIBUS_USE_LIBUV -flto -O3 -c -IuSockets/src uSockets/src/.c uSockets/src/eventing/.c |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments
-
Please don't send build errors as big reports. You need to learn how to crawl before you try and fly. |
Beta Was this translation helpful? Give feedback.
-
Can you give a hint ? this is the example build file from the repo with no changes. What am i suppose to fix here ? |
Beta Was this translation helpful? Give feedback.
-
I can admit the makefile is lacking for anything non-Linux. But the issue you have is such a default issue, posted over and over again by people who haven't learned the basics of their tools yet. I can see if I can add macOS to the makefile but like I said it should be obvious |
Beta Was this translation helpful? Give feedback.
-
@afterlifenirvana you need to link to libuv See my answer at: |
Beta Was this translation helpful? Give feedback.
-
@sab24 I have used -DLIBUS_USE_LIBUV if you would see traceback you can notice that. I solved the sys/epoll.h after doing some research. I have posted this cause of the linker error which I'm getting even after using flags. |
Beta Was this translation helpful? Give feedback.
-
Yeah, you also need -luv to link it to the uv library in the last command |
Beta Was this translation helpful? Give feedback.
-
What is the point in using an advanced C++ library with a very specific audience if you cannot even figure out the most basic linker issue? I'm sorry for being frank but you need to go back to the drawing board and go over the basics of C++ and Unix before posting issues here. One Google search and you will find a stack overflow post with like 10k upvotes |
Beta Was this translation helpful? Give feedback.
-
I agree you are right. I'm noob at c++. @sab24 Thank you for pointing out the mistake. @alexhultman you will get developers who will try to use your advanced library even after being noob at c++. I want to use this library even after i haven't learned c++ because it is a great library fit for my use and not having learned c++ won't stop me because i know i can take a look at those 10k upvotes answer and still build stuff but some time we miss things and i guess its a open community so we should help otherwise what's the point of having a community. I understand you must be frustrated after answering same build questions again and again Sorry for the trouble. I will try getting better at it. Anyway i started using it on a linux system the day i posted this question. |
Beta Was this translation helpful? Give feedback.
-
Yeah I agree, we all have to start somewhere, and without the help from others computers were never built and C++ never existed. I also agree with doing research by yourself first to reduce the load on others, as asking too many questions can be annoying. But in this case due diligence has been showed, and I think we should help those people. |
Beta Was this translation helpful? Give feedback.
What is the point in using an advanced C++ library with a very specific audience if you cannot even figure out the most basic linker issue? I'm sorry for being frank but you need to go back to the drawing board and go over the basics of C++ and Unix before posting issues here. One Google search and you will find a stack overflow post with like 10k upvotes