- 2
- Posts
- 3
- Years
- Seen Apr 28, 2025
Hi,
I'm completely new to all of this and I'm currently working on my first romhack built off of DizzyEgg's works. I saw a post made here discussing how to implement the day and night cycle into your own project based on this repository. I added everything manually based on the comparison between the daynight branch and the original decomp. However, I now can't get my project to compile. I compiled it before making the changes and had no issues. After adding the changes and seeing that it wouldn't compile, I took Sierraffinity's code and tried to compile it and still had issues. I'm now trying to determine why I'm having those issues.
Here is the error I'm getting:
I'm also a bit confused since I know that I didn't change some of the files mentioned here. So, I'm just trying to see if anyone has a solution to the problem I'm having.
Thanks
I'm completely new to all of this and I'm currently working on my first romhack built off of DizzyEgg's works. I saw a post made here discussing how to implement the day and night cycle into your own project based on this repository. I added everything manually based on the comparison between the daynight branch and the original decomp. However, I now can't get my project to compile. I compiled it before making the changes and had no issues. After adding the changes and seeing that it wouldn't compile, I took Sierraffinity's code and tried to compile it and still had issues. I'm now trying to determine why I'm having those issues.
Here is the error I'm getting:
Code:
tools/agbcc/bin/agbcc <flags> -o build/emerald/src/fldeff_dig.o src/fldeff_dig.c
include/fldeff.h: In function `FieldEffectScript_LoadPaletteNoTint':
In file included from src/fldeff_dig.c:5:
include/fldeff.h:12: storage class specified for parameter `gSpritePalette_CutGrass'
include/fldeff.h:13: storage class specified for parameter `gPlayerFacingPosition'
agbcc: warnings being treated as errors
In file included from src/fldeff_dig.c:7:
include/overworld.h:33: warning: structure defined inside parms
include/overworld.h:33: warning: empty declaration
include/overworld.h:41: warning: structure defined inside parms
include/overworld.h:41: warning: empty declaration
include/overworld.h:44: storage class specified for parameter `gLastUsedWarp'
include/overworld.h:45: storage class specified for parameter `gLinkPlayerObjectEvents'
include/overworld.h:47: storage class specified for parameter `gBGTilemapBuffers1'
include/overworld.h:48: storage class specified for parameter `gBGTilemapBuffers2'
include/overworld.h:49: storage class specified for parameter `gBGTilemapBuffers3'
include/overworld.h:50: storage class specified for parameter `gHeldKeyCodeToSend'
include/overworld.h:51: storage class specified for parameter `gFieldCallback'
include/overworld.h:52: storage class specified for parameter `gFieldCallback2'
include/overworld.h:53: storage class specified for parameter `gLocalLinkPlayerId'
include/overworld.h:54: storage class specified for parameter `gFieldLinkPlayerCount'
include/overworld.h:57: storage class specified for parameter `gDirectionToVectors'
In file included from include/party_menu.h:4,
from src/fldeff_dig.c:8:
include/main.h:4: storage class specified for parameter `MainCallback'
include/main.h:5: storage class specified for parameter `IntrCallback'
include/main.h:6: storage class specified for parameter `IntrFunc'
include/main.h:10: syntax error before `MainCallback'
include/main.h:10: warning: no semicolon at end of struct or union
include/main.h:38: syntax error before `:'
include/main.h:39: syntax error before `:'
include/main.h:40: syntax error before `:'
include/main.h:44: storage class specified for parameter `gGameVersion'
include/main.h:45: storage class specified for parameter `gGameLanguage'
include/main.h:46: storage class specified for parameter `RomHeaderGameCode'
include/main.h:47: storage class specified for parameter `RomHeaderSoftwareVersion'
include/main.h:49: storage class specified for parameter `gKeyRepeatStartDelay'
include/main.h:50: storage class specified for parameter `gLinkTransferringData'
include/main.h:51: storage class specified for parameter `gMain'
include/main.h:52: storage class specified for parameter `gKeyRepeatContinueDelay'
include/main.h:53: storage class specified for parameter `gSoftResetDisabled'
include/main.h:54: warning: type defaults to `int' in declaration of `IntrFunc'
include/main.h:54: storage class specified for parameter `IntrFunc'
include/main.h:54: conflicting types for `IntrFunc'
include/main.h:6: previous declaration of `IntrFunc'
include/main.h:54: syntax error before `gIntrTable'
include/main.h:55: storage class specified for parameter `gLinkVSyncDisabled'
include/main.h:56: storage class specified for parameter `IntrMain_Buffer'
include/main.h:57: storage class specified for parameter `gPcmDmaCounter'
include/main.h:60: syntax error before `callback'
include/main.h:62: syntax error before `callback'
include/main.h:63: syntax error before `callback'
include/main.h:64: syntax error before `callback'
include/main.h:65: syntax error before `callback'
In file included from include/party_menu.h:5,
from src/fldeff_dig.c:8:
include/task.h:11: storage class specified for parameter `TaskFunc'
include/task.h:15: syntax error before `TaskFunc'
include/task.h:15: warning: no semicolon at end of struct or union
include/task.h:21: syntax error before `}'
include/task.h:23: storage class specified for parameter `gTasks'
include/task.h:26: syntax error before `func'
include/task.h:30: syntax error before `TaskFunc'
include/task.h:32: syntax error before `func'
include/task.h:33: syntax error before `func'
In file included from src/fldeff_dig.c:8:
include/party_menu.h:11: syntax error before `MainCallback'
include/party_menu.h:11: warning: no semicolon at end of struct or union
include/party_menu.h:13: syntax error before `:'
include/party_menu.h:14: syntax error before `:'
include/party_menu.h:21: syntax error before `}'
include/party_menu.h:23: storage class specified for parameter `gPartyMenu'
include/party_menu.h:24: storage class specified for parameter `gPartyMenuUseExitCallback'
include/party_menu.h:25: storage class specified for parameter `gSelectedMonPartyId'
include/party_menu.h:26: warning: type defaults to `int' in declaration of `MainCallback'
include/party_menu.h:26: storage class specified for parameter `MainCallback'
include/party_menu.h:26: conflicting types for `MainCallback'
include/main.h:4: previous declaration of `MainCallback'
include/party_menu.h:26: syntax error before `gPostMenuFieldCallback'
include/party_menu.h:27: storage class specified for parameter `gSelectedOrderFromParty'
include/party_menu.h:28: storage class specified for parameter `gBattlePartyCurrentOrder'
include/party_menu.h:30: syntax error before `TaskFunc'
include/party_menu.h:30: storage class specified for parameter `gItemUseCB'
include/party_menu.h:32: storage class specified for parameter `gTutorMoves'
include/party_menu.h:42: syntax error before `TaskFunc'
include/party_menu.h:51: syntax error before `TaskFunc'
include/party_menu.h:52: syntax error before `TaskFunc'
include/party_menu.h:53: syntax error before `TaskFunc'
include/party_menu.h:54: syntax error before `TaskFunc'
include/party_menu.h:55: syntax error before `TaskFunc'
include/party_menu.h:59: syntax error before `TaskFunc'
include/party_menu.h:60: syntax error before `TaskFunc'
include/party_menu.h:61: syntax error before `TaskFunc'
include/party_menu.h:62: syntax error before `TaskFunc'
include/party_menu.h:63: syntax error before `TaskFunc'
include/party_menu.h:64: syntax error before `TaskFunc'
include/party_menu.h:71: syntax error before `MainCallback'
src/fldeff_dig.c:13: storage class specified for parameter `FieldCallback_Dig'
src/fldeff_dig.c:14: storage class specified for parameter `StartDigFieldEffect'
src/fldeff_dig.c:18: redeclaration of `SetUpFieldMove_Dig'
include/fldeff.h:44: `SetUpFieldMove_Dig' previously declared here
src/fldeff_dig.c:18: syntax error before `{'
make: *** [Makefile:340: build/emerald/src/fldeff_dig.o] Error 1
make: *** Deleting file 'build/emerald/src/fldeff_dig.o'
I'm also a bit confused since I know that I didn't change some of the files mentioned here. So, I'm just trying to see if anyone has a solution to the problem I'm having.
Thanks