you need more then just a single gcc command to build a plugin. they need more files then just the one Cpp file.
after you have done a full build, you should be able to rebuild a single plugin in the trunk branch by simply going into the dir and doing the "make" command.