2017年12月4日 星期一

[Cross Compile] undefined reference to symbol - DSO missing from command line

Q:
(undefined reference to symbol ‘__aeabi_idivmod@@GCC_3.5’) can’t find function

arm-openwrt-linux-uclibcgnueabi-ld: build/form-and-join.o: undefined reference to symbol ‘__aeabi_idivmod@@GCC_3.5’
/home/freeman/trunk/qca-networking-spf-4-0/qsdk/staging_dir/toolchain-arm_cortex-a7_gcc-4.8-linaro_uClibc-1.0.14_eabi/bin/../../toolchain-arm_cortex-a7_gcc-4.8-linaro_uClibc-1.0.14_eabi/lib/libgcc_s.so.1: error adding symbols: DSO missing from command line

A:
So need to find (libgcc_s.so.1), and add it into Makefile.

Example

LIBS= \
-L$(BUILD_DIR)/../gcc/ \
-lgcc \

Reference:

0 意見:

張貼留言