syntax errors while building pypgsql
David Wahler
dwahler at gmail.com
Wed Nov 23 09:03:42 EST 2005
More information about the Python-list mailing list
Wed Nov 23 09:03:42 EST 2005
- Previous message (by thread): syntax errors while building pypgsql
- Next message (by thread): syntax errors while building pypgsql
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Tin Gherdanarra wrote:
> typedef struct {
> PyObject_HEAD /* Here is the syntax error, and rightly so */
[snip]
> } PgConnection;
>
>
> I don't know what PyObject_HEAD or PGconn is,
> but if they are types, a syntax error is justified here:
>
> PyObject_HEAD /* Here is the syntax error */
> PGconn *conn;
PyObject_HEAD is a macro defined in the Python headers. It provides the
internal fields common to all Python objects to provide garbage
collection and other services. If that's throwing errors, then your
compiler isn't finding the headers. Check to see if you have the file
/usr/include/python*/Python.h on your system.
-- David
- Previous message (by thread): syntax errors while building pypgsql
- Next message (by thread): syntax errors while building pypgsql
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list