Howdy, Stranger!

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

Categories

C API

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

#include
#include

int main(int argc, char * argv[])
{
char * groups[] = { "client", NULL };
int i;
my_init();
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.

Comments

  • el_aceel_ace Member Posts: 2
    gee... I forgot:

    I'm using Slackware 8.0 with g++ 2.95, glibc.-2.2.3 and MySQL 3.23.29
  • Andre YoungAndre Young USAMember Posts: 0

    _____ || http://forcoder.org || free video tutorials and ebooks about [ MATLAB, Python, PHP, Go, Java, Visual Basic, Ruby, Assembly, JavaScript, C#, PL/SQL, Objective-C, C++, Swift, R, Perl, Scratch, Visual Basic .NET, Delphi, C Lisp, Apex, Dart, Transact-SQL, Julia, Scala, Awk, ML, F#, Fortran, Clojure, Rust, Ada, VBScript, SAS, Lua, Erlang, Logo, Alice, Crystal, Kotlin, FoxPro, Hack, D, Scheme, ABAP, Prolog, LabVIEW, Bash, COBOL ] ___________

Sign In or Register to comment.