Skip to content

Linux compilation error #309

@aaannestad

Description

@aaannestad

Describe your bug here. And how to reproduce it.

I'm trying to compile this on Arch, and getting errors. So far, I've cloned the git repo and copied the ROM into ./zelda3.smc. Having done this, running make in the top-level zelda3 directory returns errors:

src/messaging.c: In function ‘RenderText_Draw_MessageCharacters’:
src/messaging.c:2394:5: error: too many arguments to function ‘VWF_RenderSingle’; expected 0, have 1
 2394 |     VWF_RenderSingle(TEXTCMD_PARAM(cmd));
      |     ^~~~~~~~~~~~~~~~
In file included from src/messaging.c:1:
src/messaging.h:110:6: note: declared here
  110 | void VWF_RenderSingle();
      |      ^~~~~~~~~~~~~~~~
src/messaging.c: At top level:
src/messaging.c:2512:6: error: conflicting types for ‘VWF_RenderSingle’; have ‘void(int)’
 2512 | void VWF_RenderSingle(int c) {  // 8ecab8
      |      ^~~~~~~~~~~~~~~~
src/messaging.h:110:6: note: previous declaration of ‘VWF_RenderSingle’ with type ‘void(void)’
  110 | void VWF_RenderSingle();
      |      ^~~~~~~~~~~~~~~~
make: *** [Makefile:23: src/messaging.o] Error 1

What's the solution here?

What is your build target?

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions