Remember me

Lost Password?

Register now!


Who's Online
31 user(s) are online (23 user(s) are browsing Forums)

Members: 2
Guests: 29

trgswe, Gregor, more...


Report message:*

Re: MineCraft (MineTest) work in progress help need it

Subject: Re: MineCraft (MineTest) work in progress help need it
by kas1e on 2021/1/4 16:21:14

Despite missing those 2 functions, i tried to compile semaphore.c and it brings me a little bunch of undefs, which i fixed by adding those include :

And i left with:


$ ppc-amigaos-g++ semaphore.c -c -o semaphore.o
semaphore.c:13:15: error: expected constructor, destructor, or type conversion before ‘(’ token
_Static_assert(sizeof(sem_t) == sizeof(isem_t), "Internal and public structures are not the same size!");
semaphore.c: In function ‘int sem_wait(sem_t*)’:
semaphore.c:54:12: error: ‘EBREAK’ was not declared in this scope
errno = EBREAK;

EBREAK can't find in our includes, while EOVERFLOW is in sys/errno.h, but not EBREAK.

And the first errors seem code error? I tried with -std=c++11 and -std=c++17 just in case, but it seems there some typing error or something? Sure not the line which is important for code itself, but just curious wtf.

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project