EClipse CDT/Juno和链接器选项--start-group [英] EClipse CDT/Juno and linker options --start-group
问题描述
我知道链接的-l和-L选项,但是我想将--start-group和--end-group以及我所有的库设置为CDT/Juno下的C项目(属性),但是在哪里我把这个选项? -Xlinker吗?
I know the -l and -L options for link but I am looking to set the --start-group and --end-group and all my libraries into my C project (Properties) under CDT/Juno but where do I put this option ???? -Xlinker ?
谢谢 马克
推荐答案
您可以通过专家设置:命令行模式"插入此选项.
要插入选项-Wl,--start-group
和-Wl,--end-group
,您可以编辑此字段.请按照以下步骤操作:
You can insert this options through "Expert settings: Command line patterns".
To insert the options -Wl,--start-group
and -Wl,--end-group
you can edit this field. Follow the steps below:
- 单击选项GCC C/C ++链接器
- 编辑字段命令行模式
来自
${COMMAND} ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS}
到
${COMMAND} ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} $(OBJS) -Wl,--start-group $(USER_OBJS) -Wl,--end-group $(LIBS)
请注意,我们打开了等于INPUT="$(OBJS) $(USER_OBJS) $(LIBS)"
的变量${INPUTS}
.在生成的文件中检查结果.
Notice that we are open the variable ${INPUTS}
that's equal INPUT="$(OBJS) $(USER_OBJS) $(LIBS)"
. Check the result in the makefile generated.
- 在GCC C/C ++链接器->其他->其他对象部分中插入静态文件.
这篇关于EClipse CDT/Juno和链接器选项--start-group的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!