[ Error ] Compiling with Cygwin.

quesoph

New member
Messages
562
Points
0
Location
Philippines
Emulator
Is there anyone having a problem compiling a fresh checked out server with cygwin?

err.jpg

Haven't experience this error with CentOS and MSVC++ 2010.

 
Thanks very much sir..
default_biggrin.png


 
The error is still there:

.../src/common/console.c

// Copyright (c) Hercules Dev Team, licensed under GNU GPL.// See the LICENSE file// Portions Copyright (c) Athena Dev Teams#include "../common/cbasetypes.h"#include "../common/showmsg.h"#include "../common/core.h"#include "../config/core.h"#include "console.h"#ifndef MINICORE  #include "../common/ers.h"  #include "../common/malloc.h"  #include "../common/atomic.h"  #include "../common/spinlock.h"  #include "../common/thread.h"  #include "../common/mutex.h"  #include "../common/timer.h"  #include "../common/strlib.h"#endif#include <stdio.h>#include <stdlib.h>+#include <sys/time.h>
I got pass the error by adding this:

#include <sys/time.h>

Another error.

err.jpg

This error doesn't show up with *Athena emu.

 
Last edited by a moderator:
I'll get my cygwin setup so I may debug it fully, thank you for bringing this to us.

 
By the way you probably will encounter some supposedly "sql update" error messages after map server launches, ignore them -- they're not dangerous, the code for cygwin is forgetting to skip 'r', I'll get it fixed in a upcoming commit

 
By the way you probably will encounter some supposedly "sql update" error messages after map server launches, ignore them -- they're not dangerous, the code for cygwin is forgetting to skip 'r', I'll get it fixed in a upcoming commit
Thank you so much!
default_smile.png


and one more thing. if you comment this line:

/// Comment to disable Hercules' console_parse/// CONSOLE_INPUT allows you to type commands into the server's console,/// Disabling it saves one thread.#define CONSOLE_INPUT/// Maximum number of caracters 'CONSOLE_INPUT' will support per line.#define MAX_CONSOLE_INPUT 150

the compiler will produce an error.
default_smile.png


 
Thank you for bringing this to our attention, it will be fixed in my upcoming commit

 
Back
Top