且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在CodeBlocks中更改链接器顺序

更新时间:2023-02-12 14:11:33

感谢Sandro我找到了答案

Thanks to Sandro I found the answer

我有CodeBlocks 13.12,改变链接器参数你必须去菜单:

I have CodeBlocks 13.12, to change the linker params you must go to the menu:


- >编译 - >选项卡:其他设置 - >单击按钮:高级
选项... - >它显示一个消息框警告,单击:是 - >在
命令ComboBox选择:链接对象文件执行和更改

Settings -> Compiler -> Tab: Other settings -> Click button: Advanced options... -> It shows a message box warning, click: Yes -> In the Command ComboBox select: Link object files to execute, and change this:

$ linker $ libdirs -o $ exe_output $ link_objects $ link_resobjects $ link_options $ libs -mwindows

到:

$ linker $ libdirs -o $ exe_output $ link_objects $ link_resobjects $ link_options


点击

Click button: OK

然后转到菜单:


项目 - >构建选项... - >选项卡:链接器设置 - >在:其他链接器
选项,我添加了我自己的有序libs

Project -> Build options... -> Tab: Linker settings -> In: Other linker options, I added my own ordered libs