devinacker / bsnes-plus

debug-oriented fork of bsnes
http://bsnes.revenant1.net
327 stars 94 forks source link

Code doesn't compile in EndeavourOS (Linux) #356

Open demorgancoder opened 3 months ago

demorgancoder commented 3 months ago

I obtained the necessary libraries. The code doesn't compile on Arch. Maybe other Linuxes too.

The error is:

7z_C/CpuArch.c:78:12: error: type defaults to ‘int’ in declaration of ‘_b’ [-Wimplicit-int]

There's a problem on CpuArch.c in the 7zip code that causes an error...I noticed that it was testing to see if it should use ASM or not, and I thought "Let's just get rid of everything in this block of code so the file looks like:

include "CpuArch.h"

ifdef MY_CPU_X86_OR_AMD64

endif

...and it compiles on my computer. But that error should probably be fixed. I'm not really skilled enough in this area or knowledgeable enough about this project to fix it though, so I just used the nuclear method on what seems to be unnecessary code for my (non-7zip using) purposes to get the emulator up and running for me...without 7zip support though, since that most definitely crashes the emulator because of the edit I mentioned.