Howdy, Stranger!

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



el_aceel_ace Member Posts: 2
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.


Sign In or Register to comment.