Re: Linking C programs (Embedded SQLs)

From: K Stahl <BlueSax_at_Unforgetable.com>
Date: 2000/03/01
Message-ID: <38BD1C65.B9E6BE22_at_Unforgetable.com>#1/1


raomallik_at_my-deja.com wrote:
>
> Hi All,
>
> I am using GNU's CYGNUS (C compiler) for WinNT. I have compiled an SQL
> embedded C program (.pc file) with Oracle Pro*C under WinNT.
>
> My precompilation with Pro*C is clean and I could even C compiled the
> output.
>
> But when I tried to link my programs( all .o files) I am getting an
> error 'Undefined reference to SQLCXT'.
>
> My precompiled output (.c file) contains SQLCXT.
>
> Can any body suggest me how to fix this error ?
>
> Thanks,
>
> Mallik
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.

[Quoted] You need to make sure that your link step has a reference to the sql libraries. The best thing to do is use the proc.mk file that comes with Pro-C. Received on Wed Mar 01 2000 - 00:00:00 CET

Original text of this message