Re: [gnome-db] gnome-db headers and inclusion
- From: Rodrigo Moya <rodrigo gnome-db org>
- To: will lashell net
- Cc: GDA <gnome-db-list gnome org>
- Subject: Re: [gnome-db] gnome-db headers and inclusion
- Date: 04 Sep 2001 14:43:00 +0200
On Mon, 2001-09-03 at 23:53, will lashell net wrote:
> > >
> > >
> > > gulong *reccount;
> > > GdaRecordset* rs;
> > > GdaCommand* cmd;
> > > (48) rs = gda_command_execute (cmd, &reccount, NULL);
> > >
> > > but i'm getting the following errer
> > >
> > > ofs-messages.c:48: warning: passing arg 2 of `gda_command_execute' from incompatible pointer type
> > > ofs-messages.c:48: warning: passing arg 3 of `gda_command_execute' makes integer from pointer without a cast
> > >
> > > I'm sure its something stupid i'm doing.
> > >
> > I think it might be because of some header file not being included. Just
> > include gda-client.h, or even better, just gnome-db.h. This should pull
> > all the needed headers.
>
> Hrmm I removed everything but gnome-db.h and gnome.h, everything compiles
> but i still get those errors :(
>
the signature for this function is:
GdaRecordset *gda_command_execute (GdaCommand * cmd,
gulong * reccount, gulong flags);
So, the warning about the 3rd argument might be because of using NULL
when it expects a gulong. For the 2nd, you're declaring:
gulong *reccount;
when it should be:
gulong reccount;
cheers
--
Rodrigo Moya <rodrigo gnome-db org> - <rodrigo ximian com>
http://www.gnome-db.org/ - http://www.ximian.com/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]