g ++编译顺序是否重要? [英] Does g++ compilation order matter?

查看:103
本文介绍了g ++编译顺序是否重要?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到我可以在g ++的父类之前编译一个子类。有没有必要按照特定的顺序进行编译,兼顾依赖关系? 解决方案

链接顺序可以物质;汇编订单不会。


I noticed that I was able to compile a child class before a parent class with g++. Is there any need to compile in a specific order, with consideration to dependencies?

解决方案

Linking order can matter; compilation order does not.

这篇关于g ++编译顺序是否重要?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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