I was making a mistake in the Makefile. And yes, g++ worked. Thanks a lot ! Regards, Sandeep. On Sat, Jun 22, 2013 at 6:02 PM, Ian Lance Taylor <iant@xxxxxxxxxx> wrote: > On Sat, Jun 22, 2013 at 12:31 AM, Sandeep K Chaudhary > <babbusandy2006@xxxxxxxxx> wrote: > >> cc1: error: cannot load plugin /home/sandeep/myplugin/speller.so > >> 0000000000c1e5a0 T warning_at(unsigned int, int, char const*, ...) > >> What am I missing? How should I link the libraries correctly? > > You need to compile your plugin with the C++ compiler. > > Ian -- Thanks and regards, Sandeep K Chaudhary.