EClipse CDT/Juno和链接器选项--start-group [英] EClipse CDT/Juno and linker options --start-group

查看:115
本文介绍了EClipse CDT/Juno和链接器选项--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:

  1. 单击选项GCC C/C ++链接器
  2. 编辑字段命令行模式

来自

${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.

  1. 在GCC C/C ++链接器->其他->其他对象部分中插入静态文件.

这篇关于EClipse CDT/Juno和链接器选项--start-group的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆