From: Keith M. <kei...@to...> - 2007-03-15 12:06:36
|
Damian Donnelly wrote: > $ make > ar rcs dataio.o filesize.o > c:\mingw\bin\ar.exe: dataio.o: File format not recognized > make: *** [ffpis_util.lib] Error 1 > > This is the makefile that I'm using: > > [...] > SOURCES=dataio.c filesize.c > OBJECTS=$(SOURCES:.c=.o) > LIBRARY=ffpis_util.lib > [...] > > all: $(SOURCES) $(LIBRARY) > > $(LIBRARY): $(OBJECTS) > $(AR) $(ARFLAGS) $(OBJECTS) You are missing the library name, in the $(AR) command line: $(AR) $(ARFLAGS) $@ $(OBJECTS) ^^ (The error message you see, is because ar is trying to parse your first object file as a library, which of course, it isn't). Regards, Keith. |