blue_cowdawg has asked for the wisdom of the Perl Monks concerning the following question:
I have a header file such that:
When I invoke h2xs as such:#include "mysql/mysql.h" typedef struct DataLib { MYSQL mysql; char *host; char *dbname; char *user; char *password; } DataLib; typedef DataLib *pDataLib; int connect2DB(char *host,char *dbname,char *user,char *password); int startQuery(char *sql); char **getRow(void);
when this happened:h2xs -xmas -nDataLib DataLib.h
Have I found a new way to break h2xs? The C::Scan on my system is whatever the latest from CPAN is...h2xs -xmas -nDataLib DataLib.h Defaulting to backwards compatibility with perl 5.8.0 If you intend this module to be compatible with earlier perl versions, + please specify a minimum perl version with the -b option. Writing DataLib/ppport.h Scanning typemaps... Scanning /usr/lib/perl5/5.8.0/ExtUtils/typemap Scanning DataLib.h for functions... Expecting parenth after identifier in `fd_set *__restrict __readfds' after `fd_set *__restrict ' at /usr/lib/perl5/site_perl/5.8.0/C/Scan.p +m line 797.
| Peter L. Berghold -- Unix Professional Peter at Berghold dot Net | |
| Dog trainer, dog agility exhibitor, brewer of fine Belgian style ales. Happiness is a warm, tired, contented dog curled up at your side and a good Belgian ale in your chalice. | |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: h2xs wierdness... what the????
by mpeppler (Vicar) on Sep 09, 2003 at 23:46 UTC | |
|
Re: h2xs wierdness... what the????
by Roger (Parson) on Sep 10, 2003 at 00:23 UTC |