| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Paul DuBois | Date: | December 10 2000 7:00pm |
| Subject: | Re: Msql-C fn update_defaults() | ||
| View as plain text | |||
At 9:24 AM -0600 12/10/00, Gary wrote: >trying to program in C w/example from Paul Dubois book Mysql. > >show_argv.c > >.... >char *groups[] = {"client", NULL}; >int >main(int argc, char *argv[]); >.... >load_defaults ("my", groups, &argc, &argv); > >..... > >compiler error - arg 2 in load_defaults wrong type. have tried &groups, >groups[] w/no sucess. any ideas? Try changing char *groups to const char *groups. Some compilers complain if const isn't there. -- Paul DuBois, paul@stripped
| Thread | ||
|---|---|---|
| • Msql-C fn update_defaults() | Gary | 10 Dec |
| • Re: Msql-C fn update_defaults() | Paul DuBois | 10 Dec |
| • Re: Msql-C fn update_defaults() | Gustavo Vieira Goncalves Coelho Rios | 10 Dec |
| • Re: Msql-C fn update_defaults() | Paul DuBois | 10 Dec |
