c++ - SWIG-PHP error: Invalid library -


I'm new to SWIG and I'm trying to create a PHP5 wrapper around this library

< P> The project file includes zinnia.i

The following is www.swig.org/Doc1.3/Php.html

I run

  Swig -php -c ++ zinnia.i gcc `php-config --includes` -fpic -c zinnia_wrap.cpp gcc -shared -l / usr / local / lib / -lzinnia -o zinnia.so  

Then I load it into PHP

  extension = zinnia.so  

But when I start up Apache, I get this error Gets

P>

Apache / 2.2.14 (Ubuntu) PHP / 5.3.2 swig 1.3.2

thanks

I'm not sure if you are solving your problem?

I have not tried to create a PHP5 wrapper, but I thought that for GCI ge you have to cortect C ++ code.

When I accidentally compiled the C-Library instead of the C + library, I have added problems. For example,

Definitely it would be helpful, but after trying it immediately I thought I would tell it only in the matter!

Tom


Comments