JustinLloyd / RGBDS-Gameboy-Development-System

RGBDS Game Development System
www.otakunozoku.com
0 stars 0 forks source link

fatal error when compiling on gcc - on ubuntu 16.10 #1

Open ghost opened 7 years ago

ghost commented 7 years ago

guest@macbookair:/mnt/sda3/trabalhos/programacao/8bit_8080/gameboy/tools/rgbfix$ gcc -c rgbfix.c -o rgbfix rgbfix.c:14:21: fatal error: asmotor.h: No such file or directory

include "asmotor.h"

                 ^

compilation terminated. guest@macbookair:/mnt/sda3/trabalhos/programacao/8bit_8080/gameboy/tools/rgbfix$

ghost commented 7 years ago

after adding asmotor.h:

guest@macbookair:/mnt/sda3/trabalhos/programacao/8bit_8080/gameboy/tools/rgbfix$ gcc -c rgbfix.c -o rgbfix rgbfix.c:14:21: fatal error: asmotor.h: No such file or directory

include "asmotor.h"

                 ^

compilation terminated. guest@macbookair:/mnt/sda3/trabalhos/programacao/8bit_8080/gameboy/tools/rgbfix$ gcc -c rgbfix.c -o rgbfix In file included from rgbfix.c:14:0: rgbfix.c: In function ‘PrintUsage’: asmotor.h:14:38: error: expected ‘)’ before ‘LOCALVERSION’

define ASMOTOR_VERSION "1.10-linux" LOCALVERSION

                                  ^

rgbfix.c:73:56: note: in expansion of macro ‘ASMOTOR_VERSION’ printf("RGBFix v" RGBFIX_VERSION " (part of ASMotor " ASMOTOR_VERSION ")\n") ; ^~~~~~~ rgbfix.c: In function ‘Hex8BitOptionParam’: rgbfix.c:234:38: warning: format ‘%lx’ expects argument of type ‘long unsigned int ’, but argument 3 has type ‘unsigned char ’ [-Wformat=] scanResult = sscanf(paramString, "%lx", &paramValue) ; ^ rgbfix.c: In function ‘main’: rgbfix.c:434:19: warning: implicit declaration of function ‘min’ [-Wimplicit-function-declaration] bytesToAdd = min(padSize, k_ROM_BANK_SIZE) ; ^~~ guest@macbookair:/mnt/sda3/trabalhos/programacao/8bit_8080/gameboy/tools/rgbfix$