Re: Building SyncTERM In ArchLinux 64x with CodeBlocks
By: Electrosys to All on Thu Sep 06 2018 10:54 am
I think I was getting some false positives when I thought I was building all the libs in CodeBlocks successfully.
I'm pretty sure I got XPDEV building in CodeBlocks with just a few tweaks to an include and a define.
I added #include <sys/stat.h> to dirwrap.h
I added #include <sys/stat.h> to filewrap.h
If you have to modify the code, you're doing it wrong.
In gendefs.h I switched some of the defines around:
#if defined(_MSC_VER) || defined(__WATCOMC__) || defined(__BORLANDC__) #define INTTYPES_H_64BIT_PREFIX "I64"
#else
#define INTTYPES_H_64BIT_PREFIX "ll"
#endif
#ifndef BIT_64_STUFF
#if defined(_MSC_VER) || defined(__WATCOMC__) || defined(__BORLANDC__) typedef signed __int64 int64_t;
typedef unsigned __int64 uint64_t;
#define INTTYPES_H_64BIT_PREFIX "I64"
#else
typedef signed long long int int64_t;
typedef unsigned long long int uint64_t;
#define INTTYPES_H_64BIT_PREFIX "ll"
#endif
typedef uint64_t uintmax_t;
#define _UINTMAX_T_DECLARED
typedef int64_t intmax_t;
#define _INTMAX_T_DECLARED
#endif
Added #include <stdio.h> to xp_syslog.c . I also moved the line for the next declariation down as it was a bug next to the define the way it was.
Like I said earlier, we're not using xp_syslog.c, so you should not be trying to compile it.
static SOCKET syslog_sock=INVALID_SOCKET;
static char log_host[1025]=
#ifdef __unix__
"";
#else
"localhost";
#endif
static int log_opts=LOG_CONS;
I also create a code blocks file with:
Search Paths:
../../../../../../usr/include
../../../../../../usr/include/SDL
Wow. And why not just "/usr/include"?
#Defines
__USE_MISC
HAS_STDINT_H
BIT_64_STUFF
__unix__
The BIT_64_STUFF flag probably needs a better name, but do you think I'm going in the right direction so far?
No. If you have to modify the source files, you're doing something wrong. These same source files build in a variety of environments (tool-chains/compilers, platforms/architectures) - without modification.
digital man
Synchronet/BBS Terminology Definition #26:
FTSC = FidoNet Technical Standards Committee
Norco, CA WX: 71.2øF, 77.0% humidity, 2 mph NE wind, 0.00 inches rain/24hrs
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net