CopernicaMarketingSoftware / PHP-CPP

Library to build PHP extensions with C++
http://www.php-cpp.com/
Apache License 2.0
1.43k stars 333 forks source link

phpcpp compiled for windows #489

Open subabrain opened 2 years ago

subabrain commented 2 years ago

Hello Everyone,

i compiled phpcpp with php 7.4 in .o files on ubuntu. Now i want to get it as .lib file... for windows...

ive done the following:

sudo g++ -shared -o zend.dll zval.o zendcallable.o valueiterator.o value.o throwable.o super.o streams.o streambuf.o stream.o script.o sapi.o object.o namespace.o module.o members.o base.o callable.o eval.o classbase.o classimpl.o constant.o constantfuncs.o error.o exception.o exception_handler.o exists.o extension.o extensionimpl.o file.o function.o functor.o global.o globals.o hashmember.o ini.o inivalue.o iteratorimpl.o -Wl,--out-implib,zend.lib

and it works ... but if i try to compile the results "zend.lib" with visual studio i cant compile - could you tell me please - why?

thanks a lot!

Greets Robert

subabrain commented 2 years ago

Hi,

okay - i see i have to use the mingw compiler for it ;)

Greets Robert

subabrain commented 5 months ago

Hi,

here the lib/dll files of PHP-CPP for Windows!

https://github.com/subabrain/phpcpp_win

Regards Robert

mysecondnameis commented 4 months ago

Hi,

here the lib/dll files of PHP-CPP for Windows!

https://github.com/subabrain/phpcpp_win

Regards Robert

how to use your dll to compile in windows? I use minGW