g++ compiler options

g++ compiler option Wl

-Wl

-Wl

Pass options as options to the linker. If the option contains a comma, split it into multiple options at the comma. You can use this syntax to pass parameter options. For example, -Wl,-Map,ouput.mapit is identified as -Map ouput.map
to the linker. When using the GNU linker, you can also use the = sign, for example -Wl, -Map=output.map.

–start-group

---start-group a.o b.o c.o  --end-group

The representatives are a.o b.o c.opacked into a group, and can be correctly identified without order.

Reference

[1].链接: Using the GNU Compiler Collection.

Guess you like

Origin blog.csdn.net/qq_32507417/article/details/110004591
G++