3 messages in com.mysql.lists.plusplusRe: api
FromSent OnAttachments
Arlen Nascimento20 Jul 2004 10:51 
Joseph Burneff21 Jul 2004 07:44 
sinisa24 Jul 2004 06:13 
Subject:Re: api
From:sinisa (sin@beotel.yu)
Date:07/24/2004 06:13:05 AM
List:com.mysql.lists.plusplus

Arlen Nascimento wrote:

Hello all, now i can't compile mysql++, after configure i try make but there are a thousand errors with includes in directory sqlplusint, my gcc version is 3.3 here is just a piece of errors occurred during make

In file included from coldata4.hh:8, from coldata.cc:3: string_util.hh:6: error: `string' was not declared in this scope string_util.hh:6: error: `s' was not declared in this scope string_util.hh:6: warning: `strip' initialized and declared `extern' string_util.hh:6: error: variable or field `strip' declared void string_util.hh:8: error: `string' was not declared in this scope string_util.hh:8: error: `s' was not declared in this scope string_util.hh:8: warning: `escape_string' initialized and declared `extern' string_util.hh:8: error: variable or field `escape_string' declared void string_util.hh:10: error: `string' was not declared in this scope string_util.hh:10: error: `s' was not declared in this scope string_util.hh:10: error: variable or field `str_to_upr' declared void string_util.hh:10: error: `str_to_upr' declared as an `inline' variable string_util.hh:10: error: syntax error before `{' token string_util.hh:11: error: `s' was not declared in this scope string_util.hh:11: error: parse error before `;' token string_util.hh:11: error: syntax error before `++' token string_util.hh:12: error: `cnt' was not declared in this scope string_util.hh:12: error: ISO C++ forbids declaration of `s' with no type string_util.hh:12: error: `c' was not declared in this scope string_util.hh:12: error: assignment (not initialization) in declaration string_util.hh:13: error: parse error before `}' token string_util.hh:16: error: `string' was not declared in this scope string_util.hh:16: error: `s' was not declared in this scope string_util.hh:16: error: variable or field `str_to_lwr' declared void string_util.hh:16: error: `str_to_lwr' declared as an `inline' variable string_util.hh:16: error: syntax error before `{' token string_util.hh:17: error: `s' was not declared in this scope string_util.hh:17: error: parse error before `;' token string_util.hh:17: error: syntax error before `++' token string_util.hh:18: error: `cnt' was not declared in this scope string_util.hh:18: error: ISO C++ forbids declaration of `s' with no type string_util.hh:18: error: `c' was not declared in this scope string_util.hh:18: error: assignment (not initialization) in declaration string_util.hh:19: error: parse error before `}' token string_util.hh:22: error: `string' was not declared in this scope string_util.hh:22: error: `s' was not declared in this scope string_util.hh:22: error: variable or field `strip_all_blanks' declared void string_util.hh:22: error: `strip_all_blanks' declared as an `inline' variable string_util.hh:22: error: syntax error before `{' token string_util.hh:23: error: `s' was not declared in this scope string_util.hh:23: error: parse error before `;' token string_util.hh:23: error: syntax error before `++' token string_util.hh:24: error: syntax error before `--' token string_util.hh:27: error: `string' was not declared in this scope string_util.hh:27: error: `s' was not declared in this scope string_util.hh:27: error: variable or field `strip_all_non_num' declared void string_util.hh:27: error: `strip_all_non_num' declared as an `inline' variable string_util.hh:27: error: syntax error before `{' token string_util.hh:28: error: `s' was not declared in this scope string_util.hh:28: error: parse error before `;' token string_util.hh:28: error: syntax error before `++' token string_util.hh:29: error: syntax error before `--' token In file included from coldata.cc:3: coldata4.hh:11: error: non-template type `mysql_ColData' used as a template coldata4.hh:11: error: non-member function `Type conv(Type)' cannot have `const ' method qualifier coldata4.hh:11: error: too many template parameter lists in declaration of ` Type conv(Type)' coldata4.hh:11: error: syntax error before `{' token coldata4.hh:13: error: `strbuf' was not declared in this scope coldata4.hh:13: error: ISO C++ forbids declaration of `strip_all_blanks' with no type coldata4.hh:13: error: redefinition of `int strip_all_blanks' string_util.hh:22: error: `int strip_all_blanks' previously defined here coldata4.hh:14: error: `strbuf' was not declared in this scope coldata4.hh:15: error: `strbuf' was not declared in this scope coldata4.hh:17: error: parse error before `=' token coldata4.hh:20: error: syntax error before `==' token coldata4.hh:20: error: syntax error before `++' token coldata.cc:5: error: `string' was not declared in this scope coldata.cc:5: error: non-template type `mysql_ColData' used as a template coldata.cc:5: error: explicit instantiation of non-template type `<type error>' coldata.cc:6: error: non-template type `mysql_ColData' used as a template coldata.cc:6: error: explicit instantiation of non-template type `<type error>' cc1plus: Permission denied: opening dependency file .deps/coldata.pp make[2]: ** [coldata.lo] Erro 1 make[2]: Leaving directory `/usr/local/mysql++-1.7.9/sqlplusint' make[1]: ** [all-recursive] Erro 1 make[1]: Leaving directory `/usr/local/mysql++-1.7.9' make: ** [all-recursive-am] Erro 2

You have to apply both 3.3 patch, then you have to apply custom.pl patch, run it and then build it.

Sincerely,