nibtools icon indicating copy to clipboard operation
nibtools copied to clipboard

Error compiling on Linux

Open 3vi1 opened this issue 6 years ago • 1 comments

I've compiled/installed OpenCBM on Ubuntu 18.10 (alpha), but see the following issue compiling nibtools (markusC64-v637-branch).

make -f GNU/Makefile linux

...
bitshifter.c: In function ‘ShiftCopyXBitsFromPBtoQC’:
bitshifter.c:442:14: error: ‘__int32’ undeclared (first use in this function); did you mean ‘__int32_t’?
   **q = ( ( (__int32)((**q) >> (8-*c)) << 8) | (((__int32)db << (*b-1)) & 0xff) ) >> *c;
              ^~~~~~~
              __int32_t
...

If I change the type, I get another error:

read.c: In function ‘get_disk_id’:
read.c:471:8: error: too few arguments to function ‘extract_id’
   if (!extract_id(buffer, diskid))
        ^~~~~~~~~~

So, I haven't tried to workaround further.

3vi1 avatar Jul 07 '18 20:07 3vi1