Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - WLA-DX multi-file projects

Reply to topic
Author Message
  • Joined: 05 Dec 2019
  • Posts: 56
  • Location: USA
Reply with quote
WLA-DX multi-file projects
Post Posted: Fri Dec 06, 2019 2:04 am
I am using WLA-DX.
$VER: wla-z80 9.10a (1.10.2019)
$VER: WLALINK 5.12a (17.9.2019)

I want to move the subroutine "puthex" into a second source code file and link them together. But I must be missing something very basic, as when I try to make any sort of multi-file project (such as the attached one), wlalink gives me this error:
CHECK_HEADERS: The object files are from different projects.

What does this error mean, and what should I change to fix it?

  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14740
  • Location: London
Reply with quote
Post Posted: Fri Dec 06, 2019 7:48 am
else if (emptyfill != *(o->data + OBJ_EMPTY_FILL) || misc_bits != *(o->data + OBJ_MISC_BITS) || more_bits != *(o->data + OBJ_MORE_BITS)) {
   fprintf(stderr, "CHECK_HEADERS: The object files are from different projects.\n");
   return FAILED;
      }

I guess it requires certain flags to match. Relevant ones are:
- emptyfill
- smsheader
- smstag
- smschecksum

To be honest it seems wrong to me to require all those to match, in fact it’s more sensible to require most of them to be defined at most once. I raised https://github.com/vhelin/wla-dx/issues/269 about this.
  View user's profile Send private message Visit poster's website
Reply to topic



Back to the top of this page

Back to SMS Power!