I'm a newbie in MySQL and I was working with C programming for this db manager, but
I can't make this work


int main(int argc, char * argv[])
char * groups[] = { "client", NULL };
int i;
printf("Original Vector:

for(i=0; i<argc; i++)
printf("arg %d %s
", i, argv[i]);

load_defaults("my", groups, &argc, &argv);

printf("After load_defaults():

for(i=0; i<argc; i++)
printf("arg %d %s
", i, argv[i]);

return 0;

I get this message:
muestra_argumentos.cpp: In function `int main(int, char **)':
muestra_argumentos.cpp:14: passing `char **' as argument 2 of
`load_defaults(const char *, const char **, int *, char ***)'
adds cv-quals without intervening `const'

Can you help me out? Thanx in advance.


  • gee... I forgot:

    I'm using Slackware 8.0 with g++ 2.95, glibc.-2.2.3 and MySQL 3.23.29
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion