Author |
|
Rosy
Joined: 27 Apr 2016 Posts: 3 Location: India
|
Posted: Wed 01 Jun '16 18:03 Post subject: How to create .so file on windows? |
|
|
Hi,
I am running apache webserver(2.4 version) on windows server 2012.
I want to create a .so module which I can load on apache.
Can anyone help me on how to create .so files on windows? or else can anyone provide me a sample code?
Thanks
Rosy |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Sun 05 Jun '16 18:24 Post subject: |
|
|
Hi Rosy,
the .so extension is a bit misleading. The naming comes from the origins on linux. All modules on windows are dll files with the .so extension in the name.
a very easy and short example module can be found here https://github.com/JBlond/mod_moo
There is also a small how to compile it in the readme file.
if you still have a question please ask again. |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Mon 06 Jun '16 18:47 Post subject: |
|
|
Semi-Off Topic:
@JBlond
You should probably add a /manifest in the link lines for VS 2013 & 2015 for moo cow. I actually do not think you have to embed manifests anymore but it doesn't hurt and you will not get one in these versions without the /manifest switch so the embedding (MT) will fail, not that it matters it just looks ugly when it happens. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Thu 16 Jun '16 19:01 Post subject: |
|
|
I never used that flag and it always worked with VC9 and VC 11.
I thought that 2013 and 2015 so longer need that MT line at all. Am I wrong? |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Thu 16 Jun '16 21:30 Post subject: |
|
|
No you are not wrong. I was just saying that following those instruction on VC12/14 the MT part will error, possibly causing those who do not know, to think they have an unusable module. |
|
Back to top |
|