Multi source file compilation | developer.brewmp.com Multi source file compilation | developer.brewmp.com

Developer

Multi source file compilation

Hi All

I wrote an app with few source files (few .c and .h files)
i'm tring to create the mod file, and geting this error:

make: *** [subs.elf] Error 1

I've changed the mak file and added all my source files to the ADD_OBJS (changed the extension from .c to .o).

It seams like a linkage problem, how can i solve it?
thanks

So, I don't know what "Error 1" means. Is it a pathname problem?
It would help me if you would please re-make your application and attach a log file showing all the commands passed to the compiler and linker. Sorry.

So, I don't know what "Error 1" means. Is it a pathname problem?
It would help me if you would please re-make your application and attach a log file showing all the commands passed to the compiler and linker. Sorry.

i solved this problem adding
$(TARGET).o:
$(GCC) $(CFLAGS) -o file2.o file2.c
to
Object File Dependencies
hope this helps,
razvanica

i solved this problem adding
$(TARGET).o:
$(GCC) $(CFLAGS) -o file2.o file2.c
to
Object File Dependencies
hope this helps,
razvanica