in reply to perlxs: How to Create C++ object and call it's functions through perl

Cannot locate object method "new" via package color (perhaps you forgot to load color&)

So did you say "use color;" ?

P.S.: usage of code tags (i.e. <c>...</c>) around code sections would make your post easier to decipher... ;)