|
ForumsSega Master System / Mark III / Game GearSG-1000 / SC-3000 / SF-7000 / OMV |
Home - Forums - Games - Scans - Maps - Cheats - Credits Music - Videos - Development - Hacks - Translations - Homebrew |
Author | Message |
---|---|
|
WLA-DX multi-file projects
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? |
|
|
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. |
|