Cuberite Forum
Critical bug in MCServer - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: Critical bug in MCServer (/thread-254.html)

Pages: 1 2 3 4


RE: Critical bug in MCServer - xoft - 02-16-2012

(02-16-2012, 04:08 PM)Bookkc Wrote: help me!!!

Please include the revision number next time so that we know what code version to look at and if it hasn't been fixed in the meantime.

Yeah, errors like these will be likely to happen, unfortunately, because the MSVC compiler that we're using as the primary dev environment doesn't report these as errors (but they make the server fail in the runtime)

I fixed this one error in rev 269, so you can try again now.
I have run into some linker errors, it seems that the header-file dependency in the makefile is still not working, so if it happens ("undefined reference to cEntity::GetPosX()"), just "make clean" and then "make" again


RE: Critical bug in MCServer - Boo - 02-16-2012

tnx. Work!!!!!


RE: Critical bug in MCServer - FakeTruth - 02-16-2012

The compiler version/type filtering in cSocket::GetErrorString() is not working properly, I can't compile it under Cygwin
source/cSocket.cpp: In static member function 'static AString cSocket::GetErrorString(int)':
source/cSocket.cpp:125:61: error: invalid conversion from 'int' to 'char*'

EDIT:
Apparently Cygwin does not have any of the _POSIX_C_SOURCE, _XOPEN_SOURCE and_GNU_SOURCE defines, so I changed

Code:
#if (((_POSIX_C_SOURCE >= 200112L) || (_XOPEN_SOURCE >= 600)) && ! _GNU_SOURCE)
to
#if ((((_POSIX_C_SOURCE >= 200112L) || (_XOPEN_SOURCE >= 600)) && ! _GNU_SOURCE) || __CYGWIN32__ )

Now it compiles fine


RE: Critical bug in MCServer - Boo - 02-16-2012

Why do all the time is generated map?? decide to have this problem


RE: Critical bug in MCServer - FakeTruth - 02-16-2012

I think this thread has been derailed way too many times. Let's just start a new thread for new problems!

-Locked-