Thread: doubt
Hi I am new to Postgres. I was trying to create a new data type. There is an eg for creating a type complex under src/tutorial. I went under the tutorial dir and tried doing a gcc -fpic -c complex.c but it shows me that the header files postgres.h, fmgr.h are missing. That means the header files are not being found. By the way, the header files are in the path...usr/local/pgsql/include/server. How do I get gcc to find the header files. Anybody having any idea please help. Thanks Moginraj
Hi Mogin, You can use -I flag to make gcc to find the required header files As gcc -I/usr/local/pgsql/include -fpic -c complex.c Please go through this link. http://www.postgresql.org/docs/8.0/interactive/libpq-build.html Regards, Siva Kumar.K -----Original Message----- From: pgsql-novice-owner@postgresql.org [mailto:pgsql-novice-owner@postgresql.org] On Behalf Of Mogin Mohandas Sent: Tuesday, August 23, 2005 12:17 AM To: pgsql-novice@postgresql.org Subject: [NOVICE] doubt Hi I am new to Postgres. I was trying to create a new data type. There is an eg for creating a type complex under src/tutorial. I went under the tutorial dir and tried doing a gcc -fpic -c complex.c but it shows me that the header files postgres.h, fmgr.h are missing. That means the header files are not being found. By the way, the header files are in the path...usr/local/pgsql/include/server. How do I get gcc to find the header files. Anybody having any idea please help. Thanks Moginraj ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match
On Mon, 2005-08-22 at 13:46 -0500, Mogin Mohandas wrote: > Hi > I am new to Postgres. I was trying to create a new data type. > There is an eg for creating a type complex under src/tutorial. I went > under the tutorial dir and tried doing a gcc -fpic -c complex.c but it > shows me that the header files postgres.h, fmgr.h are missing. That > means the header files are not being found. By the way, the header > files are in the path...usr/local/pgsql/include/server. How do I get > gcc to find the header files. Anybody having any idea please help. Add -I/usr/local/pgsql/include/server to the gcc options. -- Oliver Elphick olly@lfix.co.uk Isle of Wight http://www.lfix.co.uk/oliver GPG: 1024D/A54310EA 92C8 39E7 280E 3631 3F0E 1EC0 5664 7A2F A543 10EA ======================================== Do you want to know God? http://www.lfix.co.uk/knowing_god.html