I think I'm hitting some kind of file-related limit when trying to build with SGDK. Compiling about 80 files (.c and .h) is fine but adding any more pops up a dialog to debug a sh.exe crash. I don't know if it's the number of files the problem or simply the length of the command line.
It's happening during this line in makefile.gen:
Code: Select all
out/rom.out: out/sega.o $(OBJS) $(LIB)/libmd.a
$(MKDIR) -p out
$(CC) -T $(GDK)/md.ld -nostdlib out/sega.o $(OBJS) $(LIB)/libmd.a $(LIB)/libgcc.a -o out/rom.out
Code: Select all
C:/Dropbox/SegaGenesisDevelopment/sgdk091/bin/gcc -T C:/Dropbox/SegaGenesisDevelopment/sgdk091/md.ld -nostdlib out/sega.o out/resource.o out/AfterburnerChargeUp.o out/BreakableRock4x4.o out/Bullet.o out/Coin.o out/CoinSparkle.o out/Collisions.o out/Debug.o out/Door.o out/EnemyBullet.o out/EnemyPlane.o out/Explosion.o out/Fireball.o out/FireballPickup.o out/FunctionStubs.o out/Game.o out/GameFont.o out/GrassTileSetData.o out/HUD.o out/LargeExplosion.o out/Level.o out/Level001Section001.o out/Level001Section002.o out/Level001Section002Spawns.o out/Level001Section003.o out/LevelDefinitions.o out/MathUtils.o out/Objects.o out/Physics.o out/Player.o out/PlayerPhysics.o out/Poof.o out/SimpleEffect.o out/SpritesAndMaps.o out/VDP_Extra.o out/long128x64map.o out/main.o out/smallmap2.o out/smallmap_background.o out/smallmap_objects.o C:/Dropbox/SegaGenesisDevelopment/sgdk091/lib/libmd.a C:/Dropbox/SegaGenesisDevelopment/sgdk091/lib/libgcc.a -o out/rom.out
I imagine if I consolidated the code into fewer files it'll work but it'll offend my one-file-per-object sensibilities And I might hit the limit again anyway.
Any idea how I can make this work?
Thanks!
DJCC