-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compile error #48
Comments
Have you installed the library on your system? ( |
@dermesser I have the same issue and I installed the library on my system. |
Are you sure that the library is in a place that the linker can find it, i.e. in your LDPATH? |
@dermesser I did "ldconfig" command as well. C library is working fine when I write in c language and compile with gcc. But when I tried to use C++ library or C library with c++ language while compiling with g++, it doesn't work. |
Just to make sure, I also tried both of -lsocket++ and -lsocket as well. |
I can't reproduce the issue; on my system it links and runs well. Do you have more information? |
I cannot understand...... after a few days, the compiling suddenly work properly...... By the way, how can I use C library in C++? |
This is what I am struggling right now. |
so is it working or is it not? for the C library from C++, you can try this: extern "C" {
#include <libsocket/libinetsocket.h>
} and then use the symbols normally. |
I made a very very huge mistake..... I made put my -lsocket in front of the source code names in Makefile. This is why Makefile doesn't work. |
This is quite embarrassing but I'll leave it for other people. |
ah well, I didn't see it either :) |
os info:
The text was updated successfully, but these errors were encountered: