- 论坛徽章:
- 0
|
本帖最后由 wangxiaolong100 于 2012-10-12 17:30 编辑
在编译一个项目的时候出现了这个问题,可是在配置中没有这个附加选项,请问如何解决,编译附加选项有-id3tag,各大搜索引擎找遍了,也不能解决,望有经验的大神帮助。- make all
- Building target: helloworld
- Invoking: Cross GCC Linker
- gcc -Xlinker -id3tag -o "helloworld" ./main_core.o ./medialib.o
- /usr/bin/ld: bad -rpath option
- collect2: ld 返回 1
- make: *** [helloworld] 错误 1
- **** Build Finished ****
复制代码 make文件如下:- ################################################################################
- # Automatically-generated file. Do not edit!
- ################################################################################
- -include ../makefile.init
- RM := rm -rf
- # All of the sources participating in the build are defined here
- -include sources.mk
- -include subdir.mk
- -include objects.mk
- ifneq ($(MAKECMDGOALS),clean)
- ifneq ($(strip $(C_DEPS)),)
- -include $(C_DEPS)
- endif
- endif
- -include ../makefile.defs
- # Add inputs and outputs from these tool invocations to the build variables
- # All Target
- all: helloworld
- # Tool invocations
- helloworld: $(OBJS) $(USER_OBJS)
- @echo 'Building target: $@'
- @echo 'Invoking: Cross GCC Linker'
- gcc -Xlinker -id3tag -o "helloworld" $(OBJS) $(USER_OBJS) $(LIBS)
- @echo 'Finished building target: $@'
- @echo ' '
- # Other Targets
- clean:
- -$(RM) $(OBJS)$(C_DEPS)$(EXECUTABLES) helloworld
- -@echo ' '
- .PHONY: all clean dependents
- .SECONDARY:
- -include ../makefile.targets
复制代码 |
|