Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Linking problems for OCI/Pro*C on HP-UX using aCC

Re: Linking problems for OCI/Pro*C on HP-UX using aCC

From: <m.paumann_at_apa.at>
Date: 1998/02/04
Message-ID: <886607049.1024458758@dejanews.com>#1/1

Hi!

  I got the same problem a while ago.
I worked around this by including

extern "C" {
  void sqlglm(char *, size_t *, size_t *); }

into my ...pc file. Damn Oracle forgot to define it in their header files. Oh I hate Oracle. I've got the same problem with Oracle Support here in Austria. I think Oracle became to big nowadays. Just like MS.

mario

In article <34c79c84.2394344_at_news.mindspring.com>,   davelandry_at_capitalone.com wrote:
>
> I'm using the "aCC" compiler supplied by HP on HP-UX 10.20 since I
> needed an ANSI C++ compiler, though right now I'm still writing just
> ANSI-C. Oracle says that aCC is supported for 7.3.3 but I can't link
> to two Oracle functions. I get this:
>
> /opt/aCC/lbin/ld: Unsatisfied symbols:
> sqlglm(char *,int *,int *) (code)
> sqlcxt(void **,unsigned long *,sqlexd *,const sqlcxp *) (code)
>
> I've used the proc.mk file from Oracle, changing only a Pro*C flag
> from code=cpp to code=ansi_c. But it seems nothing I try can get it
> to link to those two functions. I've reported this to Oracle and they
> gave me many things to try, but nothing works and so they're calling
> it a bug. But they're slow with a fix so I'm looking around to see if
> anyone else uses the aCC compiler on HP-UX and if they have had any
> success with it.
>
> It was originally a Pro*C program, and I tried rewriting it as OCI
> (what the hell - it's a small program and I learned how to use OCI)
> but I get a similar message for each OCI function.
>
> Then I took the same OCI program and used MS-VC++ and it compiles,
> links, & runs just fine - but this needs to run on HP-UX, not a
> desktop !

-------------------==== Posted via Deja News ====-----------------------
      http://www.dejanews.com/     Search, Read, Post to Usenet
Received on Wed Feb 04 1998 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US