0

我在 Windows 7 64 上使用 mingw-w64 (ruben build)。

我需要 libmysqlclient.a 来构建 libodb-mysql (http://www.codesynthesis.com/products/odb/)。但在最初的 Windows 64 mysql 版本中没有 .a 库(只有 mysqlclient.lib)。Reimp 不起作用(生成许多名称中具有不同整数的文件,但不是 .a 库)。

我正在构建 MySQL Community Server 5.5.28。

命令顺序:

cmake -G "MSYS Makefiles" .
make

我有

[ 11%] Building C object strings/CMakeFiles/strings.dir/ctype-mb.c.obj                                           
[ 11%] Building C object strings/CMakeFiles/strings.dir/ctype-simple.c.obj                                       
In file included from C:/Users/CanisMajor/Downloads/mysql-5.5.28/include/my_sys.h:44:0,                          
                 from c:/Users/CanisMajor/Downloads/mysql-5.5.28/strings/ctype-simple.c:19:                      
C:/Users/CanisMajor/Downloads/mysql-5.5.28/include/my_pthread.h:59:3: error: unknown type name 'CONDITION_VARIABL
E'                                                                                                               
C:/Users/CanisMajor/Downloads/mysql-5.5.28/include/my_pthread.h:102:8: error: redefinition of 'struct timespec'  
In file included from d:\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/pro
cess.h:12:0,                                                                                                     
                 from C:/Users/CanisMajor/Downloads/mysql-5.5.28/include/my_global.h:128,                        
                 from c:/Users/CanisMajor/Downloads/mysql-5.5.28/strings/ctype-simple.c:16:                      
d:\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/sys/types.h:89:8: note: o
riginally defined here                                                                                           
In file included from C:/Users/CanisMajor/Downloads/mysql-5.5.28/include/my_sys.h:44:0,                          
                 from c:/Users/CanisMajor/Downloads/mysql-5.5.28/strings/ctype-simple.c:19:                      
C:/Users/CanisMajor/Downloads/mysql-5.5.28/include/my_pthread.h:715:5: error: unknown type name 'SRWLOCK'        
make[2]: *** [strings/CMakeFiles/strings.dir/ctype-simple.c.obj] Error 1                                         
make[1]: *** [strings/CMakeFiles/strings.dir/all] Error 2                                                        
mak

e: *** [all] Error 2         

你有什么想法?

4

1 回答 1

0

看起来像一个编译器问题。具体来说,由于您的编译标志和定义,它无法识别某些标记。

Windows 中的 CONDITION_VARIABLE;不会编译

于 2012-11-02T23:50:59.813 回答