Porting a linux module to Windows

These are old archives. They are kept for historic purposes only.
Post Reply
ThUg
Posts: 3
Joined: Sun Nov 21, 2004 11:11 pm

Porting a linux module to Windows

Post 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
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight »

I don't see anything linux specific, so you should just be able to compile it and go.
AngryWolf
Posts: 554
Joined: Sat Mar 06, 2004 10:53 am
Location: Hungary
Contact:

Post by AngryWolf »

I think his problem is that he hasn't got a compiler and doesn't even know how to compile it.
ThUg
Posts: 3
Joined: Sun Nov 21, 2004 11:11 pm

Post 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
AngryWolf
Posts: 554
Joined: Sat Mar 06, 2004 10:53 am
Location: Hungary
Contact:

Post 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).
Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post 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.
ThUg
Posts: 3
Joined: Sun Nov 21, 2004 11:11 pm

Post by ThUg »

thanks a bunch
works great :)
bloodhound
Posts: 6
Joined: Fri Dec 03, 2004 7:04 am

Post by bloodhound »

can i also have a copy of this module? a win32 source. and a win32 dll would be great
Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post 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/
bloodhound
Posts: 6
Joined: Fri Dec 03, 2004 7:04 am

Post by bloodhound »

thanks a bunch :D
Post Reply