And follow the wiki told I compiled it success.(cmake. && make)(ubuntu OS)
I want to build and run the project in code::blocks so that I can debug it high-efficency.
So I open the accountserver.cbp file and choose the Build target as "Unix/Linux(MySQL support)",
but some error occured like below:
Code: Select all
/home/fengyan/projects/manaserv/libs/enet/unix.c|34|error: conflicting types for ‘socklen_t’|
/usr/include/i386-linux-gnu/bits/socket.h|35|note: previous declaration of ‘socklen_t’ was here|
/home/fengyan/projects/manaserv/libs/enet/unix.c||In function ‘enet_socket_accept’:|
/home/fengyan/projects/manaserv/libs/enet/unix.c|251|warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness [-Wpointer-sign]|
/usr/include/i386-linux-gnu/sys/socket.h|214|note: expected ‘socklen_t * __restrict__’ but argument is of type ‘socklen_t *’|
||=== Build finished: 3 errors, 1 warnings ===|
I think it was because the duplicate define the socklen_t, then I comment line 34 in libs/enet/unix.c and rebuild it.,
This time it throw another error like below :
Code: Select all
src/utils/xml.h|26|fatal error: libxml/tree.h: No such file or directory|
||=== Build finished: 1 errors, 0 warnings ===|
It seems that I lost any head file, but when I compile it in cmake, it was ok.
How do you avoid those problems ? Maybe I need some other setting in the code::blocks ?
Any suggestions will be much appreciated. Thanks