c++ files as module

From: Date: Fri, 19 Jan 2001 17:11:30 +0000
Subject: c++ files as module
Groups: php.dev 
Request: Send a blank email to php-dev+get-44582@lists.php.net to get a copy of this message
I'm trying to add some .cpp files to the muscat module, the hard part is getting them compiled! My Makefile.in is: LTLIBRARY_NAME = libmuscat.la LTLIBRARY_SOURCES = muscat.c muscat_net.c LTLIBRARY_SOURCES_CPP = muscatapi.cpp LTLIBRARY_SHARED_NAME = muscat.la LTLIBRARY_SHARED_LIBADD = $(MUSCAT_SHARED_LIBADD) LTLIBRARY_OBJECTS_X = $(LTLIBRARY_SOURCES_CPP:.cpp=.lo) include $(top_srcdir)/build/dynlib.mk I've tried to rip bits off qtdom module, one of the few others that uses C++; but no joy. Without the LTLIBRARY_OBJECTS_X it doesn't build muscatapi.o from muscatapi.cpp at all; with it I get: make[4]: Entering directory `/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/ext/muscat' I. -I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/ext/muscat -I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/main -I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4 -I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/Zend -I/usr/local/empower/include -I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/ext/mysql/libmysql -I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/ext/xml/expat/xmltok -I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/ext/xml/expat/xmlparse -I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/TSRM -DXML_BYTE_ORDER=12 -c muscatapi.cpp && touch muscatapi.lo /bin/sh: I.: command not found make[4]: [muscatapi.lo] Error 127 (ignored) Whats the official rules on Makefile.in to have .cpp files build, AND where SHOULD I have looked to find this. Thanks Sam

« previous php.dev (#44582) next »