From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Ushakov, Sergey N." To: Subject: object files portability issues Date: Tue, 01 Feb 2000 00:17:00 -0000 Message-id: <000001bf6c8c$a5f06680$b632bac2@ushakov.ccd.baltbank.ru> X-SW-Source: 2000-02/msg00000.html Hello, can anyone tell what precautions should be taken when an application-specific library is compiled with gcc on one machine, and an application is linked and run on another machine? Our exact problem is: - an application-specific library is compiled on a linux machine - a complete application being linked with this library on this machine runs ok - the object library and the application source are transferred to another linux machine - both machines are Intel, linux versions slightly differ - the application prepared on the first machine and linked as static runs on the second machine ok - the application being compiled on the second machine and linked there with the library prepared on the first machine misbehaves or crashes What may be the reason? Are object codes really portable? What should one take into consideration to achieve portability? Thanks, Sergey Ushakov From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Ushakov, Sergey N." To: Subject: object files portability issues Date: Sat, 01 Apr 2000 00:00:00 -0000 Message-ID: <000001bf6c8c$a5f06680$b632bac2@ushakov.ccd.baltbank.ru> X-SW-Source: 2000-q1/msg00194.html Message-ID: <20000401000000.-NdF6MVDj3qF0mQ7J0v7WsgoM42DANXFPbDnunqbWbc@z> Hello, can anyone tell what precautions should be taken when an application-specific library is compiled with gcc on one machine, and an application is linked and run on another machine? Our exact problem is: - an application-specific library is compiled on a linux machine - a complete application being linked with this library on this machine runs ok - the object library and the application source are transferred to another linux machine - both machines are Intel, linux versions slightly differ - the application prepared on the first machine and linked as static runs on the second machine ok - the application being compiled on the second machine and linked there with the library prepared on the first machine misbehaves or crashes What may be the reason? Are object codes really portable? What should one take into consideration to achieve portability? Thanks, Sergey Ushakov