Gameboy Development Forum

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.

Ads

#1 2022-03-27 05:14:20

Dominicentek
New member
Registered: 2022-03-27
Posts: 1

GBDK complaining it can't read GBC .ihx file, but it didn't create it.

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

 

#2 2022-04-01 06:09:21

toxa
Member
Registered: 2020-02-13
Posts: 309

Re: GBDK complaining it can't read GBC .ihx file, but it didn't create it.

lcc -o my.rom main.c

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson