开发者

Where is runtime library crti.o on solaris 7?

开发者 https://www.devze.com 2022-12-24 20:24 出处:网络
I know there exist crti.o crt1.o crtn.o in /usr/lib on Solaris 10. But these files are absent o开发者_JS百科n Solaris 7.These files should be included with the compiler, under the same installation di

I know there exist crti.o crt1.o crtn.o in /usr/lib on Solaris 10. But these files are absent o开发者_JS百科n Solaris 7.


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消