Skip to content
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

Can't compile it #2

Open
ernestpasnik opened this issue Jul 25, 2017 · 2 comments
Open

Can't compile it #2

ernestpasnik opened this issue Jul 25, 2017 · 2 comments

Comments

@ernestpasnik
Copy link

I tried to compile it myself but an error appear, actually there was more errors but I added -std=c99 to flags. I'm not good at programming C 😞

libcs2d.c: In function 'cs2d_request_ips': libcs2d.c:27:5: warning: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] bcopy(usgn->h_addr, &(server.sin_addr.s_addr), 4); ^ libcs2d.c:27:15: error: 'struct hostent' has no member named 'h_addr' bcopy(usgn->h_addr, &(server.sin_addr.s_addr), 4); ^ Makefile:2: recipe for target 'compile' failed make: *** [compile] Error 1

@gkbrk
Copy link
Owner

gkbrk commented Jul 25, 2017

Can I learn which OS and compiler you're using?

@ernestpasnik
Copy link
Author

root@cs2d:~/cs2d-master# cc --version cc (Debian 4.9.2-10) 4.9.2

root@cs2d:~/cs2d-master# uname -a Linux cs2d 2.6.32-042stab120.16 #1 SMP Tue Dec 13 20:58:28 MSK 2016 x86_64 GNU/Linux

root@cs2d:~/cs2d-master# lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 8.1 (jessie) Release: 8.1 Codename: jessie root@cs2d:~/cs2d-master#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants