c++ - add two shared libraries in php extension. WHO? -


I have a sharedlib.cc and sharedlib.h code that contains classes and methods. I wrap it up and share it Library which MySharedLibrary.so

has created a library, I would like to work with Then the library inside a php code. So I've probably created a config.m4 file, a php_code.cc file and a php_code.h file to extend from php. I do not want to include in the config.m4 file. Sharedlib.cc I would rather include MySharedLib.so because I do not want to share my sharelib.cc code. Besides that I have other libraries which I also had included in my .o library. Need some help

Edit: !!

I don; I want to join T-config. M4 File: Shared Lib I only want to include sharelib.h and MySharedLibrary.so (the lib that contains both sharedlib.cc and sharedlib.h)

I believe it will receive PHP_ADD_LIBRARY () macro in config.m4 .

You can find here are some examples:

EDIT: You may need the PHP_ADD_LIBRARY_WITH_PATH () , if your shared life is not anywhere , Then the linker will get it.

Editing 2: It appears that was covered before; Provides a good example code.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -