While: While compiling c files
Error:
Path not found
Couldn't open header file...
Reason:
Header files directory not passed to compiler properley.
Solution:
Normally we use this while configure package
In SWIG,
gcc `php-config –includes` ***
For Postgres,
cc `pg_config –includedir-server` ***
From this compiler didn't get the exact path of include dir.
In postgres, configure command only throws this error. For that,
Use include path directly with prefix by 'I' like
Cc -I/usr/include/postgresql/8.3/server -fPIC -c example.c
instead of
Cc `pg_config –INCLUDEDIR-SERVER` -fpic -c example.c
Ref: http://kpogre.sourceforge.net/tutorial06/index.html
Error:
Path not found
Couldn't open header file...
Reason:
Header files directory not passed to compiler properley.
Solution:
Normally we use this while configure package
In SWIG,
gcc `php-config –includes` ***
For Postgres,
cc `pg_config –includedir-server` ***
From this compiler didn't get the exact path of include dir.
In postgres, configure command only throws this error. For that,
Use include path directly with prefix by 'I' like
Cc -I/usr/include/postgresql/8.3/server -fPIC -c example.c
instead of
Cc `pg_config –INCLUDEDIR-SERVER` -fpic -c example.c
Ref: http://kpogre.sourceforge.net/tutorial06/index.html
No comments:
Post a Comment