In <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:
> Hi,
>
> Can anyone tell me if it is possible to link object
> files which were compiled under Linux on a FreeBSD system.
Stricly speaking, yes, but you have to use one C library consistently,
that means, include files and library linked to must be from the same
OS/version. Once one object files includes a Linux include file from
Linux libc, you have to link against Linux libs.
May I assume that you just didn't realize that you can link Linux
object files to Linux binaries using Linux libc under FreeBSD? Use
the linux_devel port. I has to be quite up-to-date, otherwise you
have to make sure you don't jump out of /compat/linux when the linker
searches for libraries.
Martin
--
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <[EMAIL PROTECTED]> http://www.cons.org/cracauer/
BSD User Group Hamburg, Germany http://www.bsdhh.org/
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message