Solaris 7 上的运行时库 crti.o 在哪里?

发布于 2024-08-26 08:12:31 字数 82 浏览 5 评论 0原文

我知道 Solaris 10 上的 /usr/lib 中存在 crti.o crt1.o crtn.o 。 但 Solaris 7 上不存在这些文件。

I know there exist crti.o crt1.o crtn.o in /usr/lib on Solaris 10.
But these files are absent on Solaris 7.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

零度℉ 2024-09-02 08:12:31

这些文件应包含在编译器中,位于同一安装目录下。如果您使用的是 Sun 编译器,请检查 /opt/SUNWspro/lib/ 下;对于 gcc,请在 /usr/local/lib/gcc-lib/ 下查找。确切的目录取决于编译器的版本、平台架构和您的安装选项。通常,如果您生成可执行文件作为输出,编译器会自动将此对象链接到您的程序中。

These files should be included with the compiler, under the same installation directory. If you are using the Sun compiler check under /opt/SUNWspro/lib/; for gcc look under /usr/local/lib/gcc-lib/. The exact directory depends on the version of the compiler, the platform architecture, and your installation options. Normally the compiler will link this object into your program automatically, if you are producing an executable file as output.

×眷恋的温暖 2024-09-02 08:12:31

原因可能是由于 Solaris 7 不像 Solaris 10 那样捆绑 C 编译器。这些文件是 C 运行时对象,仅当您需要链接新的可执行文件时才需要。

The reason is likely due to Solaris 7 not bundling a C compiler unlike Solaris 10. These files are C runtime objects only required when you need to link new executables.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文