Subject Re: [ib-support] Re: gpre and VisualC++
Author Paul Schmidt
fabrice:

On 31 May 2001, at 9:30, fabrice.aeschbacher@... wrote:

> I've been playing with GPRE / VisualC++ too, found as for me no
> compile problem (as soon I understood I must include gds.h), but some
> others.
>
> When trying to pre-process the following file cs.e with gpre, I am
> getting the following error:
>
>
> "D:\Program Files\Interbase\bin\gpre" -c -n -s 3 -d
> Controller.gdb cs.e
> (E) cs.e:59: TABLE MY_TABLE is ambiguous
> 1 error, no warnings
>
> I get the same error message for every table.
> Same error also occures when trying to DELETE FROM any table.
> Any idea what I did wrong?

Try this, okay I am fairly new to this stuff, as well, but from what
I have discovered:

If you include the SET DATABASE ... COMPILETIME, structure, it needs
to be the first EXEC SQL in the module, and then you don't need the
-d option on the gpre command line.

I think the fact you have both the SET DATABASE and the -d is
confusing it, because it doesn't realise that they both point the
same place, and it's telling you it can't figure out which one to
use.

Paul Schmidt,
Tricat Technologies
Email: paul@...
Website: www.tricattechnologies.com