|
shell>CC=gcc
shell>CFLAGS=-O6
shell>CXX=gcc
shell>CXXFLAGS=-O6
shell>export CC CFLAGS CXX CXXFLAGS
對于已經知道在不同系統上有用的標志定義列表,見4.14 TcX 二進制代碼。
如果你得到象如下的一條錯誤消息,你需要升級你的gcc編譯器:
client/libmysql.c:273: parse error brfore '__attribute__'
gcc2.8.1已知可以工作,但是我們推薦使用egcs1.0.3a或更新。
如果你在編譯mysqld時顯示例如下面的那些錯誤, configure沒有正確地檢測傳到accept()、getsockname()或getpeername()最後參數的類型:
cxx: Error: mysqld.cc, line 645: In this statement, the referenced
type of the pointer value "&length" is "unsigned long", which
is not compatible with "int".
new_sock = accept(sock, (struct sockaddr *)&cAddr, &length);
為了修正它,編輯“config.h”文件(它由configure生成)。尋找這些行: |
|