PDA

View Full Version : How to Lib/DLL for FreeBSD on Windows


Musharraf
January 25th, 2011, 04:57
Hi all,

I am developer on Windows Platform, and I want to port my Windows DLL into FreeBSD LiB/DLL. I don't know whether LIB or DLL supportable on FreeBSD Platform.


Please let me know how is it possible to make Lib/DLL for FreeBSD on Windows Platform.


Thanks
Musharraf Hussain

mk
January 25th, 2011, 07:18
FreeBSD porter's handbook (http://www.freebsd.org/doc/en/books/porters-handbook/)

SirDice
January 25th, 2011, 09:03
DLLs are primarily a windows thing. It's done slightly different on *nix but the principles are the same.

See rtld for instance.

Musharraf
January 25th, 2011, 10:15
Hi SirDice,

Let me know how is it possible to make LIB for FreeBSD on Windows platform.

Note, I am using Windows

Thanks

SirDice
January 25th, 2011, 14:43
Let me know how is it possible to make LIB for FreeBSD on Windows platform.
I'm sure it's possible but I have no idea how to do this on Windows.

Zare
April 2nd, 2012, 11:34
It could be possible with cross-compilation, but quick google reveals no results with Windows host (gcc/mingw) and FreeBSD target. The easiest way would be to install a FreeBSD virtual machine under VirtualBox and do a native build. Of course, first step would be to port your code to FreeBSD. Interfaces are completely different - you'll have less work if you have clean separation between interfaces and logic in your code.