c++ - collect2: ld returned 1 exit status compiling error -


after trying compile program on friendlyarm qtopia 2.0.0 getting error:

/sdcard/images/makef # make -f makefile gcc -o main obj/main.o obj/serial.o obj/fb.o obj/menu_main.o obj/timer.o obj/cmdin.o obj/buzzer.o obj/statemachine.o obj/inout.o obj/network.o obj/text_file_input.o obj/text_file_input_oven.o -i./ -lgd -lrt /usr/bin/ld:/usr/lib/gcc/arm-linux-gnueabi/4.4.1/../../../librt.so: file format not recognized; treating linker script /usr/bin/ld:/usr/lib/gcc/arm-linux-gnueabi/4.4.1/../../../librt.so:2: syntax error collect2: ld returned 1 exit status make: *** [main] error 1 /sdcard/images/makef #           

makefile :

idir =./ cc=gcc cflags=-i$(idir)  odir=obj ldir =./  libs=-lgd -lrt  _deps = main.h makefile deps = $(patsubst %,$(idir)/%,$(_deps))  _obj = main.o serial.o fb.o menu_main.o timer.o cmdin.o buzzer.o statemachine.o inout.o network.o text_file_input.o text_file_input_oven.o obj = $(patsubst %,$(odir)/%,$(_obj))   $(odir)/%.o: %.c $(deps)     $(cc) -c -o $@ $< $(cflags)  main: $(obj)     gcc -o $@ $^ $(cflags) $(libs)  .phony: clean  clean:     rm -f $(odir)/*.o *~ core $(incdir)/*~  


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -