by Phil Carmody <thefatphil_demunged@[EMAIL PROTECTED]
>
May 9, 2008 at 05:33 PM
iavian <vijay@[EMAIL PROTECTED]
> writes:
> I am trying to compile a code that includes header from both oracle
> and postgres
>
> /usr/local/pgsql/include/server/c.h:420: error: conflicting
> declaration 'typedef struct varlena text'
> /opt/oracle/product/10.2.0/rdbms/public/oratypes.h:196: error: 'text'
> has a previous declaration as `typedef oratext text'
>
> How do i fix this ?
Isolate the code that requires 'struct varlena's in one
module, and the 'code that requires 'oratext' in another.
Note that 'requires' is the operative word.
Anything that you think 'requires' both is too tightly
coupled to both, and snubbing encapsulation. Decoupling
may be as simple as providing a simple wrapper with
1-line accesssor functions.
Phil
--
Dear aunt, let's set so double the killer delete select all.
-- Microsoft voice recognition live demonstration
--
comp.lang.c.moderated - moderation address: clcm@[EMAIL PROTECTED]
-- you must
have an appropriate newsgroups line in your header for your mail to be
seen,
or the newsgroup name in square brackets in the subject line. Sorry.