FreeBSD

Moderators: gautam
Number of threads: 54
Number of posts: 117

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Shared Linux Library converted to FreeBSD one Posted by archwndas on 13 Aug 2008 at 6:24 AM
Hi there,
I was wondering if one could do the following. I have some shared library mylib.so compiled natively in 64bit Linux with the gfortran compiler. I new this was not going to work but I took that library and try to write a simple code which calls it in FreeBSD. Then compile the main.cpp natively in FreeBSD and tried to link the main.o with the mylib.so which was compiled in Linux and it is a native Linux library. I could not link. I got errors.

Do not please tell me to compile the executable in Linux and run it in FreeBSD through the Linux compatibility ABI. I do not want to run a Linux executable in FreeBSD. I do not care. I want to be able to compile code in FreeBSD and link it with this Linux library. In order to do this I should be able to remove any code related to Linux and replace it with the corresponding code (from the object file) a freebsd library should have.

Anyways I could achieve that?

Thread Tree
archwndas Shared Linux Library converted to FreeBSD one on 13 Aug 2008 at 6:24 AM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.