Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)
You are not logged in.
Pages: 1
Hello, I am having a problem with GBDK. It doesn't create a GBC ROM file because it can't read the .ihx file. The problem is, it doesn't even create the file to begin with.
Here's logs from a batch compiler I made:
Compiling ...
Creating GB ROM File ...
Creating GBC ROM File ...
?ASlink-Error-<cannot open> : "BallCollect_GBC.ihx"
Problem with filename or unable to open file! BallCollect_GBC.ihx
And here's the code:
@echo off
setlocal ENABLEDELAYEDEXPANSION
set PROJECTNAME=BallCollect
set gbdk_path=../../Toolkit
set mainfile=main
mkdir temp
echo Compiling ...
"%gbdk_path%/bin/lcc" -Wa-l -Wl-m -Wl-j -c -o temp/%mainfile%.o %mainfile%.c
echo Creating GB ROM File ...
"%gbdk_path%/bin/lcc" -Wa-l -Wl-m -Wl-j -o %PROJECTNAME%.gb temp/%mainfile%.o
echo Creating GBC ROM File ...
"%gbdk_path%/bin/lcc" -Wa-l -Wl-m -Wl-j -Wl-yC -o %PROJECTNAME%_GBC.gbc temp/%mainfile%.o
echo Compiled!
rd /s /q temp
pause
Offline
lcc -o my.rom main.c
Offline
Pages: 1