Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when compiling - redefinition of xBuf #18

Open
Strugglemeat opened this issue Feb 22, 2023 · 1 comment
Open

error when compiling - redefinition of xBuf #18

Strugglemeat opened this issue Feb 22, 2023 · 1 comment

Comments

@Strugglemeat
Copy link

when compiling:

/usr/bin/ld: src/osd_sdl_gfx.o:/huexpress-git/src/huexpress-git/src/osd_sdl_gfx.c:26: multiple definition of `XBuf'; src/osd_sdl_machine.o:/huexpress-git/src/huexpress-git/src/osd_sdl_machine.c:13: first defined here
collect2: error: ld returned 1 exit status

I was able to get the emulator to compile by modifying one of the definitions of XBuf to

extern uchar* XBuf;

@rofl0r
Copy link

rofl0r commented Feb 23, 2023

that's probably due to gcc 10+ defaulting to -fno-common. why don't you open a PR with your change ? it seems correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants