pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sarah Officer <officers@aries.tucson.saic.com>
To: pgsql-admin@postgreSQL.org
Subject: ugly name clash
Date: Wed, 26 Jan 2000 15:01:53 -0700
Message-ID: <388F6ED1.AABAC99A@aries.tucson.saic.com> (raw)

I am porting a system from Oracle to Postgres.  At this time, both
databases are installed.  I will probably arrange the software so
that I can use an environment variable to specify which database
should be used.  I have had problems with an include file name clash
between postgres & oracle: sqlca.h.  Both include files define a
struct called sqlca, an unusual coincidence.  

Is there some way to avoid the name clash without having to put
postgres in a special installation location that isn't in my path
when I compile with oracle?  Perhaps include files could all go into
a pg subdirectory so that the user could include <pg/sqlca.h>
instead of just <sqlca.h>, and that would differentiate?  Systems
that use an include subdirectory don't seem to have as many name
clash problems.

When I want to link to postgres, I can easily turn off the oracle
copy because it IS installed in a nonstandard directory (I had no
choice--this is not a benefit).  But I would prefer to put all in
one area and use <oracle/sqlca.h> or <pg/sqlca.h> to distinguish
between them.  How about it?

Sarah Officer
officers@aries.tucson.saic.com



view thread (2+ messages)  latest in thread

Message-ID: <388F6ED1.AABAC99A@aries.tucson.saic.com>
Permalink:  ../388F6ED1.AABAC99A@aries.tucson.saic.com/
Also on:    postgresql.org/message-id/388F6ED1.AABAC99A@aries.tucson.saic.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: officers@aries.tucson.saic.com
  Subject: Re: ugly name clash
  In-Reply-To: <388F6ED1.AABAC99A@aries.tucson.saic.com>
  References: <388F6ED1.AABAC99A@aries.tucson.saic.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox