Reputation: 19252
I'm trying to compile a "hello world" type extension on Windows 7, but I'm running into all kinds of problems. My end goal is to use the compiled extension with PHP (using wampserver2).
It it possible to compile the extension on Linux and still have it work on Windows?
I noticed all extensions in the ext folder in WAMP/PHP are .dll
. Is there a way to produce a DLL for Windows on a linux machine, or do I have to compile on Windows too?
Upvotes: 3
Views: 348
Reputation: 360842
It'd be possible to cross-compile, but then you'd need to have basically a windows development environment on the linux system (e.g. Wine) for the compiler to work with. The effort involved in getting that working to the point where the resulting .dlls work on a REAL windows system is most likely not worth it.
Upvotes: 1