slinga
Established Member
Hey, I'm having trouble using the GFS directory functions.
In my code I've included the file sega.gfs.h.
My objects file looks like this:
But I still get this error when I try to compile:
I've copied both sega_gfs.a and sega_gfs.lib to the right lib directory. I'm really unfamiliar with the whole concept of linking objects together...any advice would be appreciated.
In my code I've included the file sega.gfs.h.
My objects file looks like this:
Code:
#source_program
SRCS = main.c
SYSOBJS = $(CMNDIR)/cinit.o $(SGLLDR)/sglarea.o
OBJS = $(SRCS:.c=.o)
LIBS = LIBS = $(SGLLDR)/sega_gfs.a -lcd -lsgl
But I still get this error when I try to compile:
gcc -m2 -L../../lib -Xlinker -T../common/sl.lnk -Xlinker -Map -Xlinker sl.map -X
linker -e -Xlinker ___Start -nostartfiles ../common/cinit.o ../../lib/sglarea.o
main.o LIBS = ../../lib/SEGA_GFS.A -lcd -lsgl -o sl.coff
gcc.exe: LIBS: file not found
gcc.exe: =: file not found
make.exe: *** [sl.coff] Error 1
I've copied both sega_gfs.a and sega_gfs.lib to the right lib directory. I'm really unfamiliar with the whole concept of linking objects together...any advice would be appreciated.