Has anybody tried to compile the source of test2.pgc (included in the
sources postgresql-7.3.1/src/interfaces/ecpg/test dir) with a C++ compiler??
I've tried this on Solaris 8 with the SUN compiler (CC: Sun WorkShop 6
update 1 C++ 5.2 Patch 109508-08 2002/03/07) as well as with g++ (3.1)
What I get is the following error:
test2.pgc: In function `int main()':
test2.pgc:71: `sizeof' applied to incomplete type `varchar_name'
test2.pgc:101: `sizeof' applied to incomplete type `varchar_name'
Can anybody suggest a method to overcome this problem?