Good Morning,<br><br>Just asked on the irc channel and MikeS-tp tried to help (thanks!) .. this is the problem:<br><br>I am trying to build a C++ plugin, flags and libs are given correctly nevertheless It doesen't build because it is C++ code, I have arrived to this conclusion making a little test:<br>
<br>- Try to build gst-template/gst-plugin: ./autogen.sh && make : it works<br>
- Change gstplugin.c to gstplugin.cpp edit Makefile.am with the new file extension<br>- autogen.sh && make result:<br><br>/bin/bash ../libtool --tag=CXX --tag=disable-static --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT libgstplugin_la-gstplugin.lo -MD -MP -MF .deps/libgstplugin_la-gstplugin.Tpo -c -o libgstplugin_la-gstplugin.lo `test -f 'gstplugin.cpp' || echo './'`gstplugin.cpp<br>
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT libgstplugin_la-gstplugin.lo -MD -MP -MF .deps/libgstplugin_la-gstplugin.Tpo -c gstplugin.cpp -fPIC -DPIC -o .libs/libgstplugin_la-gstplugin.o<br>gstplugin.cpp:63:21: error: gst/gst.h: No such file or directory<br>
In file included from gstplugin.cpp:65:<br>gstplugin.h:65: error: expected constructor, destructor, or type conversion before 'typedef'<br>gstplugin.h:70: error: 'GstElement' does not name a type<br>gstplugin.h:72: error: ISO C++ forbids declaration of 'GstPad' with no type<br>
gstplugin.h:72: error: expected ';' before '*' token<br>gstplugin.h:74: error: 'gboolean' does not name a type<br> . . .<br><br>I have tryed to add params to libtool like --tag=CXX..<br><br>Anybody knows what and where params should I add?<br>
<br>Thanks a lot<br>