In file included from ../misc/sql/database.h:9, from server.h:9, from connection.cpp:7: ../misc/sql/./sql_result.h:12:25: mysql/mysql.h: No such file or directory In file included from ../misc/sql/database.h:9, from server.h:9, from connection.cpp:7: ../misc/sql/./sql_result.h:19: error: expected `)' before '*' token ../misc/sql/./sql_result.h:37: error: ISO C++ forbids declaration of `MYSQL_RES' with no type ../misc/sql/./sql_result.h:37: error: expected `;' before '*' token ../misc/sql/./sql_result.h:41: error: expected `;' before "private" ../misc/sql/./sql_result.h:42: error: ISO C++ forbids declaration of `MYSQL_RES' with no type ../misc/sql/./sql_result.h:42: error: expected `;' before '*' token ../misc/sql/./sql_result.h: In member function `void Csql_result_source::detach()': ../misc/sql/./sql_result.h:34: error: `m_h' was not declared in this scope ../misc/sql/./sql_result.h:34: error: `mysql_free_result' was not declared in this scope ../misc/sql/./sql_result.h: At global scope: ../misc/sql/./sql_result.h:93: error: expected `)' before "data" ../misc/sql/./sql_result.h:107: error: `MYSQL_ROW' does not name a type ../misc/sql/./sql_result.h: In member function `Csql_row:perator bool() const': ../misc/sql/./sql_result.h:99: error: `m_data' was not declared in this scope ../misc/sql/./sql_result.h: In member function `Csql_field Csql_row:perator[](size_t) const': ../misc/sql/./sql_result.h:104: error: `m_data' was not declared in this scope ../misc/sql/./sql_result.h: At global scope: ../misc/sql/./sql_result.h:120: error: expected `)' before '*' token ../misc/sql/./sql_result.h:124: error: ISO C++ forbids declaration of `MYSQL_RES' with no type ../misc/sql/./sql_result.h:124: error: expected `;' before '*' token ../misc/sql/./sql_result.h:129: error: expected `;' before "Csql_result_source" In file included from server.h:9, from connection.cpp:7: ../misc/sql/database.h:31: error: ISO C++ forbids declaration of `MYSQL' with no type ../misc/sql/database.h:31: error: expected `;' before '&' token ../misc/sql/database.h:35: error: expected `;' before "private" ../misc/sql/database.h:39: error: `MYSQL' does not name a type In file included from ../misc/sql/database.h:9, from server.h:9, from peer_link.cpp:6: ../misc/sql/./sql_result.h:12:25: mysql/mysql.h: No such file or directory In file included from ../misc/sql/database.h:9, from server.h:9, from peer_link.cpp:6:
../misc/sql/./sql_result.h:19: error: expected `)' before '*' token ../misc/sql/./sql_result.h:37: error: ISO C++ forbids declaration of `MYSQL_RES' with no type ../misc/sql/./sql_result.h:37: error: expected `;' before '*' token ../misc/sql/./sql_result.h:41: error: expected `;' before "private" ../misc/sql/./sql_result.h:42: error: ISO C++ forbids declaration of `MYSQL_RES' with no type ../misc/sql/./sql_result.h:42: error: expected `;' before '*' token ../misc/sql/./sql_result.h: In member function `void Csql_result_source::detach()': ../misc/sql/./sql_result.h:34: error: `m_h' was not declared in this scope ../misc/sql/./sql_result.h:34: error: `mysql_free_result' was not declared in this scope ../misc/sql/./sql_result.h: At global scope: ../misc/sql/./sql_result.h:93: error: expected `)' before "data" ../misc/sql/./sql_result.h:107: error: `MYSQL_ROW' does not name a type ../misc/sql/./sql_result.h: In member function `Csql_row:perator bool() const': ../misc/sql/./sql_result.h:99: error: `m_data' was not declared in this scope ../misc/sql/./sql_result.h: In member function `Csql_field Csql_row:perator[](size_t) const':
。。。。。。。 ../misc/sql/database.cpp: In member function `Csql_result Cdatabase::query(const std::string&': ../misc/sql/database.cpp:47: error: `m_handle' was not declared in this scope ../misc/sql/database.cpp:47: error: `mysql_real_query' was not declared in this scope ../misc/sql/database.cpp:51: error: `mysql_error' was not declared in this scope ../misc/sql/database.cpp:54: error: `mysql_error' was not declared in this scope ../misc/sql/database.cpp:56: error: `m_handle' was not declared in this scope ../misc/sql/database.cpp:56: error: `mysql_store_result' was not declared in this scope ../misc/sql/database.cpp: In member function `void Cdatabase::close()': ../misc/sql/database.cpp:61: error: `m_handle' was not declared in this scope ../misc/sql/database.cpp:61: error: `mysql_close' was not declared in this scope ../misc/sql/database.cpp: In member function `int Cdatabase::insert_id()': ../misc/sql/database.cpp:66: error: `m_handle' was not declared in this scope ../misc/sql/database.cpp:66: error: `mysql_insert_id' was not declared in this scope In file included from ../misc/sql/database.h:9, from ../misc/sql/sql_query.cpp:6: ../misc/sql/./sql_result.h:12:25: mysql/mysql.h: No such file or directory In file included from ../misc/sql/database.h:9, from ../misc/sql/sql_query.cpp:6: ../misc/sql/./sql_result.h:19: error: expected `)' before '*' token ../misc/sql/./sql_result.h:37: error: ISO C++ forbids declaration of `MYSQL_RES' with no type ../misc/sql/./sql_result.h:37: error: expected `;' before '*' token ../misc/sql/./sql_result.h:41: error: expected `;' before "private" ../misc/sql/./sql_result.h:42: error: ISO C++ forbids declaration of `MYSQL_RES' with no type ../misc/sql/./sql_result.h:42: error: expected `;' before '*' token ../misc/sql/./sql_result.h: In member function `void Csql_result_source::detach()': ../misc/sql/./sql_result.h:34: error: `m_h' was not declared in this scope ../misc/sql/./sql_result.h:34: error: `mysql_free_result' was not declared in this scope ../misc/sql/./sql_result.h: At global scope: ../misc/sql/./sql_result.h:93: error: expected `)' before "data" ../misc/sql/./sql_result.h:107: error: `MYSQL_ROW' does not name a type ../misc/sql/./sql_result.h: In member function `Csql_row:perator bool() const': ../misc/sql/./sql_result.h:99: error: `m_data' was not declared in this scope ../misc/sql/./sql_result.h: In member function `Csql_field Csql_row:perator[](size_t) const': ../misc/sql/./sql_result.h:104: error: `m_data' was not declared in this scope ../misc/sql/./sql_result.h: At global scope: ../misc/sql/./sql_result.h:120: error: expected `)' before '*' token ../misc/sql/./sql_result.h:124: error: ISO C++ forbids declaration of `MYSQL_RES' with no type ../misc/sql/./sql_result.h:124: error: expected `;' before '*' token ../misc/sql/./sql_result.h:129: error: expected `;' before "Csql_result_source" In file included from ../misc/sql/sql_query.cpp:6: ../misc/sql/database.h:31: error: ISO C++ forbids declaration of `MYSQL' with no type ../misc/sql/database.h:31: error: expected `;' before '&' token ../misc/sql/database.h:35: error: expected `;' before "private" ../misc/sql/database.h:39: error: `MYSQL' does not name a type ../misc/sql/sql_query.cpp: In member function `void Csql_query::p_name(const std::string&': ../misc/sql/sql_query.cpp:51: error: 'class Cdatabase' has no member named 'handle' ../misc/sql/sql_query.cpp:51: error: `mysql_real_escape_string' was not declared in this scope ../misc/sql/sql_query.cpp: In member function `void Csql_query::p(const_memory_range)': ../misc/sql/sql_query.cpp:76: error: 'class Cdatabase' has no member named 'handle' ../misc/sql/sql_query.cpp:76: error: `mysql_real_escape_string' was not declared in this scope In file included from ../misc/sql/sql_result.cpp:2: ../misc/sql/sql_result.h:12:25: mysql/mysql.h: No such file or directory In file included from ../misc/sql/sql_result.cpp:2: ../misc/sql/sql_result.h:19: error: expected `)' before '*' token ../misc/sql/sql_result.h:37: error: ISO C++ forbids declaration of `MYSQL_RES' with no type ../misc/sql/sql_result.h:37: error: expected `;' before '*' token ../misc/sql/sql_result.h:41: error: expected `;' before "private" ../misc/sql/sql_result.h:42: error: ISO C++ forbids declaration of `MYSQL_RES' with no type ../misc/sql/sql_result.h:42: error: expected `;' before '*' token ../misc/sql/sql_result.h: In member function `void Csql_result_source::detach()': ../misc/sql/sql_result.h:34: error: `m_h' was not declared in this scope ../misc/sql/sql_result.h:34: error: `mysql_free_result' was not declared in this scope ../misc/sql/sql_result.h: At global scope: ../misc/sql/sql_result.h:93: error: expected `)' before "data" ../misc/sql/sql_result.h:107: error: `MYSQL_ROW' does not name a type ../misc/sql/sql_result.h: In member function `Csql_row:perator bool() const': ../misc/sql/sql_result.h:99: error: `m_data' was not declared in this scope ../misc/sql/sql_result.h: In member function `Csql_field Csql_row:perator[](size_t) const': ../misc/sql/sql_result.h:104: error: `m_data' was not declared in this scope ../misc/sql/sql_result.h: At global scope: ../misc/sql/sql_result.h:120: error: expected `)' before '*' token ../misc/sql/sql_result.h:124: error: ISO C++ forbids declaration of `MYSQL_RES' with no type ../misc/sql/sql_result.h:124: error: expected `;' before '*' token ../misc/sql/sql_result.h:129: error: expected `;' before "Csql_result_source" ../misc/sql/sql_result.cpp:9: error: expected `)' before "data" ../misc/sql/sql_result.cpp: In copy constructor `Csql_row::Csql_row(const Csql_row&': ../misc/sql/sql_result.cpp:18: error: `m_data' was not declared in this scope ../misc/sql/sql_result.cpp:18: error: 'const class Csql_row' has no member named 'm_data' ../misc/sql/sql_result.cpp: In member function `const Csql_row& Csql_row:perator=(const Csql_row&': ../misc/sql/sql_result.cpp:33: error: `m_data' was not declared in this scope ../misc/sql/sql_result.cpp:33: error: 'const class Csql_row' has no member named 'm_data' ../misc/sql/sql_result.cpp: At global scope: ../misc/sql/sql_result.cpp:40: error: expected `)' before '*' token ../misc/sql/sql_result.cpp: In member function `int Csql_result::c_fields() const': ../misc/sql/sql_result.cpp:67: error: `h' was not declared in this scope ../misc/sql/sql_result.cpp:67: error: `mysql_num_fields' was not declared in this scope ../misc/sql/sql_result.cpp: In member function `int Csql_result::c_rows() const': ../misc/sql/sql_result.cpp:72: error: `h' was not declared in this scope ../misc/sql/sql_result.cpp:72: error: `mysql_num_rows' was not declared in this scope ../misc/sql/sql_result.cpp: In member function `void Csql_result::data_seek(int)': ../misc/sql/sql_result.cpp:77: error: `h' was not declared in this scope ../misc/sql/sql_result.cpp:77: error: `mysql_data_seek' was not declared in this scope ../misc/sql/sql_result.cpp: In member function `Csql_row Csql_result::fetch_row() const': ../misc/sql/sql_result.cpp:82: error: `MYSQL_ROW' was not declared in this scope ../misc/sql/sql_result.cpp:82: error: expected `;' before "data" ../misc/sql/sql_result.cpp:83: error: `data' was not declared in this scope ../misc/sql/sql_result.cpp:83: error: `h' was not declared in this scope ../misc/sql/sql_result.cpp:83: error: `mysql_fetch_lengths' was not declared in this scope
发布评论
评论(5)
谢谢楼上
库?
我现在的环境是CentOS 4.3 ,只安装了所有的编绎工具加vi ,别的什么都没有选择安装了~
mysql和http php都是后来编绎的,都安装在/usr/local下面
还要安装什么库吗?提示一下啊~
我看了都用的是debian安装的,在centos上安装有没有根本问题啊~
你安装了什么库了吗?
那个库需要单独下载
我没有用cvs 而是用的svn
用cvs没有找到可以下载源码的地方啊~
出现错误啊~
我是按http://wiki.debianhelp.org/pmwiki.php/DebianHelpPages/XBTTracker
做的
./make.sh
In file included from ../misc/sql/database.h:9,
perator bool() const':
perator[](size_t) const':
from server.h:9,
from connection.cpp:7:
../misc/sql/./sql_result.h:12:25: mysql/mysql.h: No such file or directory
In file included from ../misc/sql/database.h:9,
from server.h:9,
from connection.cpp:7:
../misc/sql/./sql_result.h:19: error: expected `)' before '*' token
../misc/sql/./sql_result.h:37: error: ISO C++ forbids declaration of `MYSQL_RES' with no type
../misc/sql/./sql_result.h:37: error: expected `;' before '*' token
../misc/sql/./sql_result.h:41: error: expected `;' before "private"
../misc/sql/./sql_result.h:42: error: ISO C++ forbids declaration of `MYSQL_RES' with no type
../misc/sql/./sql_result.h:42: error: expected `;' before '*' token
../misc/sql/./sql_result.h: In member function `void Csql_result_source::detach()':
../misc/sql/./sql_result.h:34: error: `m_h' was not declared in this scope
../misc/sql/./sql_result.h:34: error: `mysql_free_result' was not declared in this scope
../misc/sql/./sql_result.h: At global scope:
../misc/sql/./sql_result.h:93: error: expected `)' before "data"
../misc/sql/./sql_result.h:107: error: `MYSQL_ROW' does not name a type
../misc/sql/./sql_result.h: In member function `Csql_row:
../misc/sql/./sql_result.h:99: error: `m_data' was not declared in this scope
../misc/sql/./sql_result.h: In member function `Csql_field Csql_row:
../misc/sql/./sql_result.h:104: error: `m_data' was not declared in this scope
../misc/sql/./sql_result.h: At global scope:
../misc/sql/./sql_result.h:120: error: expected `)' before '*' token
../misc/sql/./sql_result.h:124: error: ISO C++ forbids declaration of `MYSQL_RES' with no type
../misc/sql/./sql_result.h:124: error: expected `;' before '*' token
../misc/sql/./sql_result.h:129: error: expected `;' before "Csql_result_source"
In file included from server.h:9,
from connection.cpp:7:
../misc/sql/database.h:31: error: ISO C++ forbids declaration of `MYSQL' with no type
../misc/sql/database.h:31: error: expected `;' before '&' token
../misc/sql/database.h:35: error: expected `;' before "private"
../misc/sql/database.h:39: error: `MYSQL' does not name a type
In file included from ../misc/sql/database.h:9,
from server.h:9,
from peer_link.cpp:6:
../misc/sql/./sql_result.h:12:25: mysql/mysql.h: No such file or directory
In file included from ../misc/sql/database.h:9,
from server.h:9,
from peer_link.cpp:6:
../misc/sql/./sql_result.h:19: error: expected `)' before '*' token
perator bool() const':
perator[](size_t) const':
../misc/sql/./sql_result.h:37: error: ISO C++ forbids declaration of `MYSQL_RES' with no type
../misc/sql/./sql_result.h:37: error: expected `;' before '*' token
../misc/sql/./sql_result.h:41: error: expected `;' before "private"
../misc/sql/./sql_result.h:42: error: ISO C++ forbids declaration of `MYSQL_RES' with no type
../misc/sql/./sql_result.h:42: error: expected `;' before '*' token
../misc/sql/./sql_result.h: In member function `void Csql_result_source::detach()':
../misc/sql/./sql_result.h:34: error: `m_h' was not declared in this scope
../misc/sql/./sql_result.h:34: error: `mysql_free_result' was not declared in this scope
../misc/sql/./sql_result.h: At global scope:
../misc/sql/./sql_result.h:93: error: expected `)' before "data"
../misc/sql/./sql_result.h:107: error: `MYSQL_ROW' does not name a type
../misc/sql/./sql_result.h: In member function `Csql_row:
../misc/sql/./sql_result.h:99: error: `m_data' was not declared in this scope
../misc/sql/./sql_result.h: In member function `Csql_field Csql_row:
。。。。。。。
':
perator bool() const':
perator[](size_t) const':
':
perator bool() const':
perator[](size_t) const':
':
perator=(const Csql_row&
':
../misc/sql/database.cpp: In member function `Csql_result Cdatabase::query(const std::string&
../misc/sql/database.cpp:47: error: `m_handle' was not declared in this scope
../misc/sql/database.cpp:47: error: `mysql_real_query' was not declared in this scope
../misc/sql/database.cpp:51: error: `mysql_error' was not declared in this scope
../misc/sql/database.cpp:54: error: `mysql_error' was not declared in this scope
../misc/sql/database.cpp:56: error: `m_handle' was not declared in this scope
../misc/sql/database.cpp:56: error: `mysql_store_result' was not declared in this scope
../misc/sql/database.cpp: In member function `void Cdatabase::close()':
../misc/sql/database.cpp:61: error: `m_handle' was not declared in this scope
../misc/sql/database.cpp:61: error: `mysql_close' was not declared in this scope
../misc/sql/database.cpp: In member function `int Cdatabase::insert_id()':
../misc/sql/database.cpp:66: error: `m_handle' was not declared in this scope
../misc/sql/database.cpp:66: error: `mysql_insert_id' was not declared in this scope
In file included from ../misc/sql/database.h:9,
from ../misc/sql/sql_query.cpp:6:
../misc/sql/./sql_result.h:12:25: mysql/mysql.h: No such file or directory
In file included from ../misc/sql/database.h:9,
from ../misc/sql/sql_query.cpp:6:
../misc/sql/./sql_result.h:19: error: expected `)' before '*' token
../misc/sql/./sql_result.h:37: error: ISO C++ forbids declaration of `MYSQL_RES' with no type
../misc/sql/./sql_result.h:37: error: expected `;' before '*' token
../misc/sql/./sql_result.h:41: error: expected `;' before "private"
../misc/sql/./sql_result.h:42: error: ISO C++ forbids declaration of `MYSQL_RES' with no type
../misc/sql/./sql_result.h:42: error: expected `;' before '*' token
../misc/sql/./sql_result.h: In member function `void Csql_result_source::detach()':
../misc/sql/./sql_result.h:34: error: `m_h' was not declared in this scope
../misc/sql/./sql_result.h:34: error: `mysql_free_result' was not declared in this scope
../misc/sql/./sql_result.h: At global scope:
../misc/sql/./sql_result.h:93: error: expected `)' before "data"
../misc/sql/./sql_result.h:107: error: `MYSQL_ROW' does not name a type
../misc/sql/./sql_result.h: In member function `Csql_row:
../misc/sql/./sql_result.h:99: error: `m_data' was not declared in this scope
../misc/sql/./sql_result.h: In member function `Csql_field Csql_row:
../misc/sql/./sql_result.h:104: error: `m_data' was not declared in this scope
../misc/sql/./sql_result.h: At global scope:
../misc/sql/./sql_result.h:120: error: expected `)' before '*' token
../misc/sql/./sql_result.h:124: error: ISO C++ forbids declaration of `MYSQL_RES' with no type
../misc/sql/./sql_result.h:124: error: expected `;' before '*' token
../misc/sql/./sql_result.h:129: error: expected `;' before "Csql_result_source"
In file included from ../misc/sql/sql_query.cpp:6:
../misc/sql/database.h:31: error: ISO C++ forbids declaration of `MYSQL' with no type
../misc/sql/database.h:31: error: expected `;' before '&' token
../misc/sql/database.h:35: error: expected `;' before "private"
../misc/sql/database.h:39: error: `MYSQL' does not name a type
../misc/sql/sql_query.cpp: In member function `void Csql_query::p_name(const std::string&
../misc/sql/sql_query.cpp:51: error: 'class Cdatabase' has no member named 'handle'
../misc/sql/sql_query.cpp:51: error: `mysql_real_escape_string' was not declared in this scope
../misc/sql/sql_query.cpp: In member function `void Csql_query::p(const_memory_range)':
../misc/sql/sql_query.cpp:76: error: 'class Cdatabase' has no member named 'handle'
../misc/sql/sql_query.cpp:76: error: `mysql_real_escape_string' was not declared in this scope
In file included from ../misc/sql/sql_result.cpp:2:
../misc/sql/sql_result.h:12:25: mysql/mysql.h: No such file or directory
In file included from ../misc/sql/sql_result.cpp:2:
../misc/sql/sql_result.h:19: error: expected `)' before '*' token
../misc/sql/sql_result.h:37: error: ISO C++ forbids declaration of `MYSQL_RES' with no type
../misc/sql/sql_result.h:37: error: expected `;' before '*' token
../misc/sql/sql_result.h:41: error: expected `;' before "private"
../misc/sql/sql_result.h:42: error: ISO C++ forbids declaration of `MYSQL_RES' with no type
../misc/sql/sql_result.h:42: error: expected `;' before '*' token
../misc/sql/sql_result.h: In member function `void Csql_result_source::detach()':
../misc/sql/sql_result.h:34: error: `m_h' was not declared in this scope
../misc/sql/sql_result.h:34: error: `mysql_free_result' was not declared in this scope
../misc/sql/sql_result.h: At global scope:
../misc/sql/sql_result.h:93: error: expected `)' before "data"
../misc/sql/sql_result.h:107: error: `MYSQL_ROW' does not name a type
../misc/sql/sql_result.h: In member function `Csql_row:
../misc/sql/sql_result.h:99: error: `m_data' was not declared in this scope
../misc/sql/sql_result.h: In member function `Csql_field Csql_row:
../misc/sql/sql_result.h:104: error: `m_data' was not declared in this scope
../misc/sql/sql_result.h: At global scope:
../misc/sql/sql_result.h:120: error: expected `)' before '*' token
../misc/sql/sql_result.h:124: error: ISO C++ forbids declaration of `MYSQL_RES' with no type
../misc/sql/sql_result.h:124: error: expected `;' before '*' token
../misc/sql/sql_result.h:129: error: expected `;' before "Csql_result_source"
../misc/sql/sql_result.cpp:9: error: expected `)' before "data"
../misc/sql/sql_result.cpp: In copy constructor `Csql_row::Csql_row(const Csql_row&
../misc/sql/sql_result.cpp:18: error: `m_data' was not declared in this scope
../misc/sql/sql_result.cpp:18: error: 'const class Csql_row' has no member named 'm_data'
../misc/sql/sql_result.cpp: In member function `const Csql_row& Csql_row:
../misc/sql/sql_result.cpp:33: error: `m_data' was not declared in this scope
../misc/sql/sql_result.cpp:33: error: 'const class Csql_row' has no member named 'm_data'
../misc/sql/sql_result.cpp: At global scope:
../misc/sql/sql_result.cpp:40: error: expected `)' before '*' token
../misc/sql/sql_result.cpp: In member function `int Csql_result::c_fields() const':
../misc/sql/sql_result.cpp:67: error: `h' was not declared in this scope
../misc/sql/sql_result.cpp:67: error: `mysql_num_fields' was not declared in this scope
../misc/sql/sql_result.cpp: In member function `int Csql_result::c_rows() const':
../misc/sql/sql_result.cpp:72: error: `h' was not declared in this scope
../misc/sql/sql_result.cpp:72: error: `mysql_num_rows' was not declared in this scope
../misc/sql/sql_result.cpp: In member function `void Csql_result::data_seek(int)':
../misc/sql/sql_result.cpp:77: error: `h' was not declared in this scope
../misc/sql/sql_result.cpp:77: error: `mysql_data_seek' was not declared in this scope
../misc/sql/sql_result.cpp: In member function `Csql_row Csql_result::fetch_row() const':
../misc/sql/sql_result.cpp:82: error: `MYSQL_ROW' was not declared in this scope
../misc/sql/sql_result.cpp:82: error: expected `;' before "data"
../misc/sql/sql_result.cpp:83: error: `data' was not declared in this scope
../misc/sql/sql_result.cpp:83: error: `h' was not declared in this scope
../misc/sql/sql_result.cpp:83: error: `mysql_fetch_lengths' was not declared in this scope
有哪位大哥帮我看看啊
[ 本帖最后由 suchpeng 于 2006-9-18 18:50 编辑 ]
好的,谢谢~我先去试试看~楼上的装过吧~~谢谢啊
很简单啊.先cvs,再直接make,再运行就可以了.不过没有找到好的管理界面