List:MySQL on Win32« Previous MessageNext Message »
From:Eric Length Date:June 11 2009 6:45am
Subject:compiling problem
View as plain text  
Hi

  I am a novice. I want to compile the source code on windows XP and later
to modify code to see some changes. I compiled the source code
(original) downloaded from the website
http://dev.mysql.com/downloads/mysql/5.1.html#downloads and the version is
mysql-5.1.35.tar.gz. I did as told by
http://dev.mysql.com/doc/refman/5.1/en/windows-source-build-cmake.html. But
I failed in compiling one project: Project: mysqld, and the only file with
errors is: C:\workdir\sql\sql_locale.cc. The error information is attached
at the end.

The configuration I chose is C:\workdir>*win\configure.js
WITH_INNOBASE_STORAGE_ENGINE*
I executed win\build-vs8.bat because I use visual studio 2005.
When open "mysql.sln" by visual studio, I chose the configuation with
"release" and "win32".
Then I built it. Only this one failed. I am confused. Can anyone help me by
a hint of why or how can I avoid such a problem and build it successfully?
Thank you.


The error information:
sql_locale.cc
.\sql_locale.cc(585) : warning C4819: The file contains a character that
cannot be represented in the current code page (936). Save the file in
Unicode format to prevent data loss
.\sql_locale.cc(668) : error C2146: syntax error : missing '}' before
identifier '嗒.\sql_locale.cc(668) : error C2146: syntax error : missing ';' before
identifier '嗒.\sql_locale.cc(668) : error C2143: syntax error : missing ';' before
'string'
.\sql_locale.cc(668) : error C4430: missing type specifier - int assumed.
Note: C++ does not support default-int
.\sql_locale.cc(668) : error C2143: syntax error : missing ';' before '}'
.\sql_locale.cc(668) : error C2059: syntax error : '}'
.\sql_locale.cc(670) : error C2146: syntax error : missing '}' before
identifier '嗒.\sql_locale.cc(670) : error C2146: syntax error : missing ';' before
identifier '嗒.\sql_locale.cc(670) : error C4430: missing type specifier - int assumed.
Note: C++ does not support default-int
.\sql_locale.cc(670) : error C2059: syntax error : 'string'
.\sql_locale.cc(670) : error C2143: syntax error : missing ';' before '}'
.\sql_locale.cc(670) : error C2059: syntax error : '}'
.\sql_locale.cc(672) : error C2146: syntax error : missing '}' before
identifier '嗒多.\sql_locale.cc(672) : error C2146: syntax error : missing ';' before
identifier '嗒多.\sql_locale.cc(672) : error C2143: syntax error : missing ';' before
'string'
.\sql_locale.cc(672) : error C4430: missing type specifier - int assumed.
Note: C++ does not support default-int
.\sql_locale.cc(672) : error C2001: newline in constant
.\sql_locale.cc(674) : error C2143: syntax error : missing ';' before '{'
.\sql_locale.cc(674) : error C2447: '{' : missing function header (old-style
formal list?)
.\sql_locale.cc(682) : error C2065: 'my_locale_ab_day_names_gu_IN' :
undeclared identifier
.\sql_locale.cc(682) : error C2070: ''unknown-type'': illegal sizeof operand
.\sql_locale.cc(682) : error C2440: 'initializing' : cannot convert from
'const char [1]' to 'unsigned int'
        There is no context in which this conversion is possible
.\sql_locale.cc(732) : error C2146: syntax error : missing '}' before
identifier '啶.\sql_locale.cc(732) : error C2146: syntax error : missing ';' before
identifier '啶.\sql_locale.cc(732) : error C2143: syntax error : missing ';' before
'string'
.\sql_locale.cc(732) : error C4430: missing type specifier - int assumed.
Note: C++ does not support default-int
.\sql_locale.cc(732) : error C2001: newline in constant
.\sql_locale.cc(734) : error C2143: syntax error : missing ';' before '{'
.\sql_locale.cc(734) : error C2447: '{' : missing function header (old-style
formal list?)
.\sql_locale.cc(734) : error C2001: newline in constant
.\sql_locale.cc(928) : error C2001: newline in constant
.\sql_locale.cc(930) : error C2001: newline in constant
.\sql_locale.cc(960) : error C2001: newline in constant
.\sql_locale.cc(962) : error C2001: newline in constant
.\sql_locale.cc(1176) : warning C4819: The file contains a character that
cannot be represented in the current code page (936). Save the file in
Unicode format to prevent data loss
.\sql_locale.cc(1570) : error C2001: newline in constant
.\sql_locale.cc(1600) : error C2001: newline in constant
.\sql_locale.cc(1602) : error C2001: newline in constant
.\sql_locale.cc(1628) : error C2001: newline in constant
.\sql_locale.cc(1632) : error C2001: newline in constant
.\sql_locale.cc(1754) : warning C4819: The file contains a character that
cannot be represented in the current code page (936). Save the file in
Unicode format to prevent data loss
.\sql_locale.cc(1788) : error C2001: newline in constant
.\sql_locale.cc(1820) : error C2001: newline in constant
.\sql_locale.cc(2831) : fatal error C1004: unexpected end-of-file found

Thread
compiling problemEric Length11 Jun
  • Re: compiling problemMeiji KIMURA17 Jun