Новости | FAQ | Авторы | Документация | В действии | Библиотека |
Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
delavar 26.02.2005 23:46
Прочитал топик temach и советы Константина Моршнева, но всёравно при сборке "make" выдаёт ошибку./usr/src/p3/sql/mysql/include/mysql.h:80:27: mysql_version.h: No such file or directory parser3mysql.C:66: error: syntax error before `*' token parser3mysql.C:76: error: syntax error before `{' token parser3mysql.C: In function `int api_version()': parser3mysql.C:83: error: `SQL_DRIVER_API_VERSION' undeclared (first use this function) parser3mysql.C:83: error: (Each undeclared identifier is reported only once for each function it appears in.) parser3mysql.C: In function `const char* initialize(char*)': parser3mysql.C:87: error: `dlink' undeclared (first use this function) parser3mysql.C: At global scope: parser3mysql.C:102: error: type specifier omitted for parameter ` SQL_Driver_services' parser3mysql.C:102: error: syntax error before `&' token parser3mysql.C: In function `void connect(...)': parser3mysql.C:105: error: `url' undeclared (first use this function) parser3mysql.C:124: error: `services' undeclared (first use this function) parser3mysql.C:125: error: 'struct Connection' has no member named 'services' parser3mysql.C:129: error: `connection_ref' undeclared (first use this function) parser3mysql.C:169: error: `MYSQL_PORT' undeclared (first use this function) parser3mysql.C:169: error: invalid conversion from `char*' to `unsigned int' parser3mysql.C:177: error: `exec' undeclared (first use this function) parser3mysql.C: In function `void exec(Connection&, const char*)': parser3mysql.C:184: error: `void exec(Connection&, const char*)' used prior to declaration parser3mysql.C:186: error: 'struct Connection' has no member named 'services' parser3mysql.C: In function `const char* quote(void*, const char*, unsigned int)': parser3mysql.C:224: error: 'struct Connection' has no member named 'services' parser3mysql.C: At global scope: parser3mysql.C:230: error: type specifier omitted for parameter `Placeholder' parser3mysql.C:230: error: syntax error before `*' token parser3mysql.C: In function `void query(...)': parser3mysql.C:233: error: `aconnection' undeclared (first use this function) parser3mysql.C:234: error: `SQL_Driver_services' undeclared (first use this function) parser3mysql.C:234: error: 'struct Connection' has no member named 'services' parser3mysql.C:238: error: `placeholders_count' undeclared (first use this function) parser3mysql.C:244: error: `astatement' undeclared (first use this function) parser3mysql.C:251: error: `offset' undeclared (first use this function) parser3mysql.C:251: error: `limit' undeclared (first use this function) parser3mysql.C:283: error: `SQL_Error' undeclared (first use this function) parser3mysql.C:283: error: syntax error before `;' token parser3mysql.C:305: error: `handlers' undeclared (first use this function) parser3mysql.C:305: error: `sql_error' undeclared (first use this function) parser3mysql.C: At global scope: parser3mysql.C:345: error: syntax error before `private' parser3mysql.C:347: error: 't_mysql_init' is used as a type, but is not defined as a type. parser3mysql.C:349: error: `int (*mysql_options)(MYSQL*, mysql_option, const char*)' redeclared as different kind of symbol /usr/src/p3/sql/mysql/include/mysql.h:270: error: previous declaration of `int mysql_options(MYSQL*, mysql_option, const char*)' parser3mysql.C:351: error: `MYSQL_RES*(*mysql_store_result)(MYSQL*)' redeclared as different kind of symbol /usr/src/p3/sql/mysql/include/mysql.h:267: error: previous declaration of ` MYSQL_RES* mysql_store_result(MYSQL*)' parser3mysql.C:353: error: `int (*mysql_query)(MYSQL*, const char*)' redeclared as different kind of symbol /usr/src/p3/sql/mysql/include/mysql.h:243: error: previous declaration of `int mysql_query(MYSQL*, const char*)' parser3mysql.C:355: error: `char*(*mysql_error)(MYSQL*)' redeclared as different kind of symbol /usr/src/p3/sql/mysql/include/mysql.h:208: error: previous declaration of ` char* mysql_error(MYSQL*)' parser3mysql.C:364: error: `MYSQL*(*mysql_real_connect)(MYSQL*, const char*, const char*, const char*, const char*, unsigned int, const char*, unsigned int)' redeclared as different kind of symbol /usr/src/p3/sql/mysql/include/mysql.h:239: error: previous declaration of ` MYSQL* mysql_real_connect(MYSQL*, const char*, const char*, const char*, unsigned int, const char*, unsigned int)' parser3mysql.C:366: error: `void (*mysql_close)(MYSQL*)' redeclared as different kind of symbol /usr/src/p3/sql/mysql/include/mysql.h:241: error: previous declaration of `void mysql_close(MYSQL*)' parser3mysql.C:368: error: `int (*mysql_ping)(MYSQL*)' redeclared as different kind of symbol /usr/src/p3/sql/mysql/include/mysql.h:256: error: previous declaration of `int mysql_ping(MYSQL*)' parser3mysql.C:371: error: `long unsigned int (*mysql_escape_string)(char*, const char*, long unsigned int)' redeclared as different kind of symbol /usr/src/p3/sql/mysql/include/mysql.h:281: error: previous declaration of `long unsigned int mysql_escape_string(char*, const char*, long unsigned int)' parser3mysql.C:373: error: `void (*mysql_free_result)(MYSQL_RES*)' redeclared as different kind of symbol /usr/src/p3/sql/mysql/include/mysql.h:271: error: previous declaration of `void mysql_free_result(MYSQL_RES*)' parser3mysql.C:375: error: `long unsigned int*(*mysql_fetch_lengths)(MYSQL_RES*)' redeclared as different kind of symbol /usr/src/p3/sql/mysql/include/mysql.h:278: error: previous declaration of `long unsigned int* mysql_fetch_lengths(MYSQL_RES*)' parser3mysql.C:377: error: `char**(*mysql_fetch_row)(MYSQL_RES*)' redeclared as different kind of symbol /usr/src/p3/sql/mysql/include/mysql.h:277: error: previous declaration of ` char** mysql_fetch_row(MYSQL_RES*)' parser3mysql.C:379: error: `MYSQL_FIELD*(*mysql_fetch_field)(MYSQL_RES*)' redeclared as different kind of symbol /usr/src/p3/sql/mysql/include/mysql.h:279: error: previous declaration of ` MYSQL_FIELD* mysql_fetch_field(MYSQL_RES*)' parser3mysql.C:381: error: `unsigned int (*mysql_num_fields)(MYSQL_RES*)' redeclared as different kind of symbol /usr/src/p3/sql/mysql/include/mysql.h:196: error: previous declaration of ` unsigned int mysql_num_fields(MYSQL_RES*)' parser3mysql.C:384: error: `unsigned int (*mysql_field_count)(MYSQL*)' redeclared as different kind of symbol /usr/src/p3/sql/mysql/include/mysql.h:204: error: previous declaration of ` unsigned int mysql_field_count(MYSQL*)' parser3mysql.C:387: error: syntax error before `private' parser3mysql.C:392: error: `dlopen_file_spec' was not declared in this scope parser3mysql.C:393: error: syntax error before `if' parser3mysql.C:408: error: ISO C++ forbids declaration of `mysql_init' with no type parser3mysql.C:408: error: `int mysql_init' redeclared as different kind of symbol /usr/src/p3/sql/mysql/include/mysql.h:213: error: previous declaration of ` MYSQL* mysql_init(MYSQL*)' parser3mysql.C:408: error: `t_mysql_init' was not declared in this scope parser3mysql.C:408: error: syntax error before `(' token parser3mysql.C:409: error: ISO C++ forbids declaration of `mysql_options' with no type parser3mysql.C:409: error: conflicting types for `int mysql_options' parser3mysql.C:349: error: previous declaration as `int (*mysql_options)(MYSQL*, mysql_option, const char*)' parser3mysql.C:409: error: syntax error before `if' parser3mysql.C:410: error: ISO C++ forbids declaration of `mysql_store_result' with no type parser3mysql.C:410: error: conflicting types for `int mysql_store_result' parser3mysql.C:351: error: previous declaration as ` MYSQL_RES*(*mysql_store_result)(MYSQL*)' parser3mysql.C:410: error: syntax error before `if' parser3mysql.C:411: error: ISO C++ forbids declaration of `mysql_query' with no type parser3mysql.C:411: error: conflicting types for `int mysql_query' parser3mysql.C:353: error: previous declaration as `int (*mysql_query)(MYSQL*, const char*)' parser3mysql.C:411: error: syntax error before `if' parser3mysql.C:412: error: ISO C++ forbids declaration of `mysql_error' with no type parser3mysql.C:412: error: conflicting types for `int mysql_error' parser3mysql.C:355: error: previous declaration as `char*(*mysql_error)(MYSQL*) ' parser3mysql.C:412: error: syntax error before `if' parser3mysql.C:413: error: ISO C++ forbids declaration of `mysql_real_connect' with no type parser3mysql.C:413: error: conflicting types for `int mysql_real_connect' parser3mysql.C:364: error: previous declaration as ` MYSQL*(*mysql_real_connect)(MYSQL*, const char*, const char*, const char*, const char*, unsigned int, const char*, unsigned int)' parser3mysql.C:413: error: syntax error before `if' parser3mysql.C:414: error: ISO C++ forbids declaration of `mysql_close' with no type parser3mysql.C:414: error: conflicting types for `int mysql_close' parser3mysql.C:366: error: previous declaration as `void (*mysql_close)(MYSQL*) ' parser3mysql.C:414: error: syntax error before `if' parser3mysql.C:415: error: ISO C++ forbids declaration of `mysql_ping' with no type parser3mysql.C:415: error: conflicting types for `int mysql_ping' parser3mysql.C:368: error: previous declaration as `int (*mysql_ping)(MYSQL*)' parser3mysql.C:415: error: syntax error before `if' parser3mysql.C:416: error: ISO C++ forbids declaration of `mysql_escape_string' with no type parser3mysql.C:416: error: conflicting types for `int mysql_escape_string' parser3mysql.C:371: error: previous declaration as `long unsigned int (*mysql_escape_string)(char*, const char*, long unsigned int)' parser3mysql.C:416: error: syntax error before `if' parser3mysql.C:417: error: ISO C++ forbids declaration of `mysql_free_result' with no type parser3mysql.C:417: error: conflicting types for `int mysql_free_result' parser3mysql.C:373: error: previous declaration as `void (*mysql_free_result)(MYSQL_RES*)' parser3mysql.C:417: error: syntax error before `if' parser3mysql.C:418: error: ISO C++ forbids declaration of `mysql_fetch_lengths' with no type parser3mysql.C:418: error: conflicting types for `int mysql_fetch_lengths' parser3mysql.C:375: error: previous declaration as `long unsigned int*(*mysql_fetch_lengths)(MYSQL_RES*)' parser3mysql.C:418: error: syntax error before `if' parser3mysql.C:419: error: ISO C++ forbids declaration of `mysql_fetch_row' with no type parser3mysql.C:419: error: conflicting types for `int mysql_fetch_row' parser3mysql.C:377: error: previous declaration as ` char**(*mysql_fetch_row)(MYSQL_RES*)' parser3mysql.C:419: error: syntax error before `if' parser3mysql.C:420: error: ISO C++ forbids declaration of `mysql_fetch_field' with no type parser3mysql.C:420: error: conflicting types for `int mysql_fetch_field' parser3mysql.C:379: error: previous declaration as ` MYSQL_FIELD*(*mysql_fetch_field)(MYSQL_RES*)' parser3mysql.C:420: error: syntax error before `if' parser3mysql.C:421: error: ISO C++ forbids declaration of `mysql_num_fields' with no type parser3mysql.C:421: error: conflicting types for `int mysql_num_fields' parser3mysql.C:381: error: previous declaration as `unsigned int (*mysql_num_fields)(MYSQL_RES*)' parser3mysql.C:421: error: syntax error before `if' parser3mysql.C:422: error: ISO C++ forbids declaration of `mysql_field_count' with no type parser3mysql.C:422: error: conflicting types for `int mysql_field_count' parser3mysql.C:384: error: previous declaration as `unsigned int (*mysql_field_count)(MYSQL*)' parser3mysql.C:422: error: syntax error before `if' parser3mysql.C:428: error: syntax error before `*' token make[2]: *** [parser3mysql.lo] Ошибка 1 make[2]: Leaving directory `/usr/src/p3' make[1]: *** [all-recursive] Ошибка 1 make[1]: Leaving directory `/usr/src/p3' make: *** [all] Ошибка 2