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 » Sun Nov 21, 2004 11:15 pm

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 » Mon Nov 22, 2004 4:55 am

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 » Mon Nov 22, 2004 5:06 am

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 » Mon Nov 22, 2004 5:49 am

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 » Mon Nov 22, 2004 9:50 am

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 » Mon Nov 22, 2004 5:36 pm

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 » Mon Nov 22, 2004 6:35 pm

thanks a bunch
works great :)

bloodhound
Posts: 6
Joined: Fri Dec 03, 2004 7:04 am

Post by bloodhound » Fri Dec 03, 2004 7:11 am

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 » Fri Dec 03, 2004 11:03 pm

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 » Fri Dec 03, 2004 11:39 pm

thanks a bunch :D

Post Reply