HS <mhossein@gmail.com> writes:
> I'd appreciate it if anyone could help me with this problem (adding a
> C++ file that uses some C++ libraries to postrges).
Learn to write plain C --- the backend is not a C++ program and cannot
readily be turned into one.
regards, tom lane