Code: Select all
%GDK_WIN%\bin\make -f %GDK_WIN%\makelib.gen
Moderator: Stef
Code: Select all
%GDK_WIN%\bin\make -f %GDK_WIN%\makelib.gen
Code: Select all
#include <genesis.h>
void updateStage();
u16 stage;
char line[36];
u16 A;
u16 B;
u16 C;
int main() {
// disable interrupt when accessing VDP
SYS_disableInts();
// initialization
VDP_setScreenWidth320();
VDP_setTextPalette(PAL0);
// VDP process done, we can re enable interrupts
SYS_enableInts();
while(TRUE)
{
updateStage();
VDP_waitVSync();
}
}
void updateStage() {
switch(stage) {
case 0 :
A = 100;
B = 5;
C = fix16ToRoundedInt((fix16Sqrt(intToFix16(A + B)) * 100) / 12);
SYS_disableInts();
memset(line,0,sizeof(line));
uintToStr(C, line, 0);
VDP_drawText(line, 1, 0);
SYS_enableInts();
stage++;
break;
case 1 :
break;
}
}
Code: Select all
-------------- Clean: release in MegaRockBandManager (compiler: Sega Genesis Compiler)---------------
Executing clean command: make.exe -f D:\sgdk\makefile.gen clean
D:/sgdk/bin/rm -f out/res/gfx.o out/res/music.o out/res/sound.o out/src/main.o out/sega.o out/rom_head.bin out/rom_head.o out/rom.out
D:/sgdk/bin/rm -f out.lst out/cmd_ out/rom.nm out/rom.wch out/rom.bin
Cleaned "MegaRockBandManager - release"
-------------- Build: release in MegaRockBandManager (compiler: Sega Genesis Compiler)---------------
Checking if target is up-to-date: make.exe -q -f D:\sgdk\makefile.gen release
Running command: make.exe -f D:\sgdk\makefile.gen
D:/sgdk/bin/mkdir -p src/boot
D:/sgdk/bin/mkdir -p out
D:/sgdk/bin/mkdir -p out/src
D:/sgdk/bin/mkdir -p out/res
D:/sgdk/bin/gcc -m68000 -Wall -fno-builtin -Iinc -Isrc -Ires -ID:/sgdk/inc -ID:/sgdk/res -BD:/sgdk/bin -O1 -fomit-frame-pointer -c src/boot/rom_head.c -o out/rom_head.o
D:/sgdk/bin/ld -T D:/sgdk/md.ld -nostdlib --oformat binary -o out/rom_head.bin out/rom_head.o
D:/sgdk/bin/gcc -m68000 -Wall -fno-builtin -Iinc -Isrc -Ires -ID:/sgdk/inc -ID:/sgdk/res -BD:/sgdk/bin -O1 -fomit-frame-pointer -c src/boot/sega.s -o out/sega.o
D:/sgdk/bin/rescomp res/gfx.res res/gfx.s
rescomp v1.5
Resource: IMAGE report_layout "Images/clipboard.png" NONE
--> executing plugin IMAGE...
Resource: IMAGE main_menu_layout "Images/mainmenu.png" NONE
--> executing plugin IMAGE...
Resource: IMAGE write_song_layout "Images/WriteSong.png" NONE
--> executing plugin IMAGE...
Resource: IMAGE tour_flags_layout "Images/TourFlags.png" NONE
--> executing plugin IMAGE...
Resource: IMAGE tour_britain_layout "Images/TourBritain.png" NONE
--> executing plugin IMAGE...
Resource: IMAGE tour_europe_layout "Images/TourEurope.png" NONE
--> executing plugin IMAGE...
Resource: IMAGE tour_japan_layout "Images/TourJapan.png" NONE
--> executing plugin IMAGE...
Resource: IMAGE tour_usa_layout "Images/TourUSA.png" NONE
--> executing plugin IMAGE...
Resource: SPRITE hand_sprite "Sprites/Hand.png" 3 4 NONE 1 NONE
--> executing plugin SPRITE...
D:/sgdk/bin/gcc -m68000 -Wall -fno-builtin -Iinc -Isrc -Ires -ID:/sgdk/inc -ID:/sgdk/res -BD:/sgdk/bin -O1 -fomit-frame-pointer -c res/gfx.s -o out/res/gfx.o
D:/sgdk/bin/rescomp res/music.res res/music.s
rescomp v1.5
D:/sgdk/bin/gcc -m68000 -Wall -fno-builtin -Iinc -Isrc -Ires -ID:/sgdk/inc -ID:/sgdk/res -BD:/sgdk/bin -O1 -fomit-frame-pointer -c res/music.s -o out/res/music.o
D:/sgdk/bin/rescomp res/sound.res res/sound.s
rescomp v1.5
D:/sgdk/bin/gcc -m68000 -Wall -fno-builtin -Iinc -Isrc -Ires -ID:/sgdk/inc -ID:/sgdk/res -BD:/sgdk/bin -O1 -fomit-frame-pointer -c res/sound.s -o out/res/sound.o
D:/sgdk/bin/gcc -m68000 -Wall -fno-builtin -Iinc -Isrc -Ires -ID:/sgdk/inc -ID:/sgdk/res -BD:/sgdk/bin -O1 -fomit-frame-pointer -c src/main.c -o out/src/main.o
echo "out/res/gfx.o out/res/music.o out/res/sound.o out/src/main.o" > out/cmd_
D:/sgdk/bin/gcc -BD:/sgdk/bin -n -T D:/sgdk/md.ld -nostdlib out/sega.o @out/cmd_ D:/sgdk/lib/libmd.a D:/sgdk/lib/libgcc.a -o out/rom.out
out/src/main.o: In function `processTour':
main.c:(.text+0x1bb8): undefined reference to `sqrttab16'
main.c:(.text+0x1c28): undefined reference to `sqrttab16'
make: *** [out/rom.out] Error 1
rm res/sound.s res/music.s res/gfx.s
Process terminated with status 2 (0 minute(s), 5 second(s))
2 error(s), 0 warning(s) (0 minute(s), 5 second(s))
Code: Select all
make -f makelib.gen clean
Code: Select all
make -f makelib.gen