You are here: php extension with pthreads « PHP « IT news, forums, messages
php extension with pthreads

Posted by Nikunj Gupta on 06/13/05 13:38

hi
i am new to php and am building my first php extension. i have a code
in cpp that uses pthreads for carrying out the job. i tried to convert
this into a php extension but was unable to do so despite a number of
tries.

i am able to compile the extension that i build but am unable to load it.
the error that i get is ::

PHP Warning: Unknown(): Unable to load dynamic library
'/home/y/lib/php/20020429/perfext.so' -
/home/y/lib/php/20020429/perfext.so: Undefined symbol
"pthread_exit" in Unknown on line 0

i have used the line

PHP_ADD_LIBRARY_WITH PATH to include pthread library and also used
-pthread in the cppflags.

do i need to do anything else for creating such an extension.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация