MySQL Forums
Forum List  »  Optimizer & Parser

Preparse Query Rewrite Plugin DLL
Posted by: Francois Haddad
Date: June 03, 2016 12:41PM

I need help compiling a "Preparse Query Rewrite Plugin" DLL for Windows. I'm using MySQL 5.7.12 64bit and Visual Studio 2013. But I can change if needed. I'm compiling as Win32.

<== Error Output Start ==>

1>MySQLQueryPreParserDLL_v2.obj : error LNK2019: unresolved external symbol _my_malloc referenced in function "int __cdecl rewrite_lower(class THD *,enum mysql_event_class_t,void const *)" (?rewrite_lower@@YAHPAVTHD@@W4mysql_event_class_t@@PBX@Z)

1>MySQLQueryPreParserDLL_v2.obj : error LNK2001: unresolved external symbol _PSI_server

1>C:\Users\francois.haddad\Documents\Visual Studio 2013\Projects\MySQLQueryPreParser3\Debug\MySQLQueryPreParserDLL.dll : fatal error LNK1120: 2 unresolved externals

<== Error Output End ==>

I have the code example that makes [rewrite_example.dll] that's given to us when we install MySQL. I've added both [libmysql.lib] and [mysqlclient.lib] libraries. And I've added all [.h] files given to me also.

What am I doing wrong or missing? Thanks in advance...

Options: ReplyQuote

Written By
Preparse Query Rewrite Plugin DLL
June 03, 2016 12:41PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.