thank you, professor Stefan, I use what your suggest command to complie the sample0.c,but it has the errors: bash: monetdb-clients-config: command not found sample0.c:23:26: error: mapilib/Mapi.h: No such file or directory sample0.c: In function ‘main’: sample0.c:38: error: ‘Mapi’ undeclared (first use in this function) sample0.c:38: error: (Each undeclared identifier is reported only once sample0.c:38: error: for each function it appears in.) sample0.c:38: error: expected ‘;’ before ‘dbh’ sample0.c:39: error: ‘MapiHdl’ undeclared (first use in this function) sample0.c:39: error: expected ‘;’ before ‘hdl’ sample0.c:47: error: ‘dbh’ undeclared (first use in this function) sample0.c:49: error: ‘hdl’ undeclared (first use in this function) sample0.c:54: error: ‘MOK’ undeclared (first use in this function) sample0.c:103: warning: initialization makes pointer from integer without a cast sample0.c:104: warning: initialization makes pointer from integer without a cast I don't know how to solve it? Best regards
2010/8/19 Stefan Manegold <stefan.maneg...@cwi.nl> > On Thu, Aug 19, 2010 at 02:30:04PM +0800, kun ren wrote: > > dear all > > recently,I want to run mapi examples from > > /Monetdb-client/clients/src/examples/C/, it contains sample0.c ,sample1.c > > and so on. I read the Application Programming Interfaces of the Monetdb > > manual, and I use: > > gcc sample0.c 'monetdb-clients-config --cflags --lib' -lMapi -o > sample0 > > The documentation I can find correctly suggests actually > > gcc sample0.c `monetdb-clients-config --cflags --libs` -lMapi -o > sample0 > > (mind the back-quotes instead of single quotes and the "s" in "--libs" ;-)) > > If the manual suggests differently, please point us to the excat location. > > In case the above statement --- that assumes a successful and usable > MonetDB > installation) --- please report the exactly what you do and the exact > errors > you get --- preferably as bug report via http://bugs.monetdb.org/ > > Stefan > > > to complie it,but it has errors, so I want to ask how I > > will complie the files? > > Best regards! > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by > > > > Make an app they can't live without > > Enter the BlackBerry Developer Challenge > > http://p.sf.net/sfu/RIM-dev2dev > > > _______________________________________________ > > Monetdb-developers mailing list > > Monetdb-developers@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/monetdb-developers > > > -- > | Dr. Stefan Manegold | mailto:stefan.maneg...@cwi.nl | > | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | > | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | > | The Netherlands | Fax : +31 (20) 592-4199 | >
------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers