Hi,
I'm trying to compile an information schema plugin for MySQL 5.5 on Windows using VS2008, based on this article:
http://dev.mysql.com/tech-resources/articles/mysql_i_s_plugins_part1-2.html
I've changed some of the initial includes, to match the include files in MySQL 5.5.
(haad to use <sql_priv.h> insted of <mysql_priv.h> and had to additionally include <field.h>.)
If the plugin only creates an empty table (e.g.:mysql_is_hello_fill_table is empty), everything compiles, link, and install, and I can see the information_shema.mysql_hello table.
But if I try to fill the table, using table->field[0]->store, I get the following linker errors:
Error 7 error LNK2001: unresolved external symbol "__declspec(dllimport) struct charset_info_st * system_charset_info" (__imp_?system_charset_info@@3PAUcharset_info_st@@A) InformationSchemaExample.obj
Error 8 error LNK2001: unresolved external symbol "int __cdecl schema_table_store_record(class THD *,struct TABLE *)" (?schema_table_store_record@@YAHPAVTHD@@PAUTABLE@@@Z) InformationSchemaExample.obj
Where are these external functions defined?
Can anyone direct me to a working information schema example on windows?
thank you,
krisy