Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C Moderated > Re: OCI and Pos...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 4 Topic 1097 of 1126
Post > Topic >>

Re: OCI and Postgres - Compile error

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.
 




 4 Posts in Topic:
OCI and Postgres - Compile error
iavian <vijay@[EMAIL P  2008-05-08 02:20:48 
Re: OCI and Postgres - Compile error
Phil Carmody <thefatph  2008-05-09 17:33:07 
Re: OCI and Postgres - Compile error
=?ISO-8859-1?Q?Hans-Bernh  2008-05-09 17:33:11 
Re: OCI and Postgres - Compile error
Jonathan Leffler <jlef  2008-05-09 17:33:16 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Jul 9 1:03:15 CDT 2008.