Page 1 of 1

Porting a linux module to Windows

Posted: Sun Nov 21, 2004 11:15 pm
by ThUg
I asked this guy to code something for me
however i forgot to add that i am using windows
he made this for linux, is there anyone who could make it work on windows?
It is actually usefull too
http://dev.anope.de/unreal/m_onlyopersjoin.c

Posted: Mon Nov 22, 2004 4:55 am
by aquanight
I don't see anything linux specific, so you should just be able to compile it and go.

Posted: Mon Nov 22, 2004 5:06 am
by AngryWolf
I think his problem is that he hasn't got a compiler and doesn't even know how to compile it.

Posted: Mon Nov 22, 2004 5:49 am
by ThUg
no
Stealth tried to compile it for me
http://x-tab.no-ip.org/~ircd/log.txt
he got those errors
the guy who wrote it used linux

Posted: Mon Nov 22, 2004 9:50 am
by AngryWolf
Oh, sorry. I understand now. By looking at the source code and the error log, I can say, the module actually is Linux-specific. Modules on Windows require one or two additional header files to be included (io.h is one of the requirements, however I'm not sure about version.h).

Posted: Mon Nov 22, 2004 5:36 pm
by Stealth
It compiled, and is available at:

http://www.x-tab.org/~ircd/m_onlyopersjoin.dll

Kinda in a rush this morning, so it isnt in a fancy zip.

Posted: Mon Nov 22, 2004 6:35 pm
by ThUg
thanks a bunch
works great :)

Posted: Fri Dec 03, 2004 7:11 am
by bloodhound
can i also have a copy of this module? a win32 source. and a win32 dll would be great

Posted: Fri Dec 03, 2004 11:03 pm
by Stealth
Sure!

http://www.x-tab.org/~ircd/m_onlyopersjoin.zip

This module will also be available soon on my Windows module site, located at: http://www.x-tab.org/~ircd/

Posted: Fri Dec 03, 2004 11:39 pm
by bloodhound
thanks a bunch :D