Skip to content

编译在这个地方老是报错,试过了好几遍 #8

Description

@DarkiT

[ 99%] Building C object libmysqld/CMakeFiles/mysqlserver.dir/mysqlserver_depends.c.o
Linking C static library libmysqld.a
/bin/ar: creating /tmp/mysql-alisql-5.6.32/libmysqld/libmysqld.a
[ 99%] Built target mysqlserver
Scanning dependencies of target mysql_client_test_embedded
[100%] Building C object libmysqld/examples/CMakeFiles/mysql_client_test_embedded.dir///tests/mysql_client_test.c.o
Linking CXX executable mysql_client_test_embedded
../libmysqld.a(lib_sql.cc.o): In function `clean_up':

/tmp/mysql-alisql-5.6.32/libmysqld/../sql/mysqld.cc:1930: undefined reference to `free_global_table_stats()'

/tmp/mysql-alisql-5.6.32/libmysqld/../sql/mysqld.cc:1931: undefined reference to `free_global_index_stats()'

../libmysqld.a(lib_sql.cc.o): In function `init_server_components':

/tmp/mysql-alisql-5.6.32/libmysqld/../sql/mysqld.cc:4745: undefined reference to `init_global_table_stats()'

/tmp/mysql-alisql-5.6.32/libmysqld/../sql/mysqld.cc:4746: undefined reference to `init_global_index_stats()'

collect2: error: ld returned 1 exit status
make[2]: *** [libmysqld/examples/mysql_client_test_embedded] Error 1
make[1]: *** [libmysqld/examples/CMakeFiles/mysql_client_test_embedded.dir/all] Error 2
make: *** [all] Error 2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions