Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poco libraries missing methods #5066

Open
mkaut opened this issue Mar 15, 2019 · 0 comments
Open

Poco libraries missing methods #5066

mkaut opened this issue Mar 15, 2019 · 0 comments

Comments

@mkaut
Copy link

mkaut commented Mar 15, 2019

Building the following code (saved as test.cpp):

#include <Poco/Data/MySQL/Connector.h>
int main() {
	Poco::Data::MySQL::Connector::registerConnector();
	std::string conType = Poco::Data::MySQL::Connector::KEY;
	return 0;
}

using g++ -o test.exe test.cpp -lPocoDataMySQL -lmysqlclient -lPocoData fails with:

C:\Users\mkaut\Apps\MSYS2\tmp\ccAPijGz.o:test.cpp:(.text+0x14): undefined reference to `Poco::Data::MySQL::Connector::registerConnector()'
C:\Users\mkaut\Apps\MSYS2\tmp\ccAPijGz.o:test.cpp:(.rdata$.refptr._ZN4Poco4Data5MySQL9Connector3KEYB5cxx11E[.refptr._ZN4Poco4Data5MySQL9Connector3KEYB5cxx11E]+0x0): undefined reference to `Poco::Data::MySQL::Connector::KEY[abi:cxx11]'
collect2.exe: error: ld returned 1 exit status

On closer inspection, the supplied library libPocoDataMySQL.dll.a lacks both Poco::Data::MySQL::Connector::registerConnector() and Poco::Data::MySQL::Connector::KEY.
By the way, these are present in libPocoDataSQLite.dll.a, but missing also in libPocoDataODBC.dll.a.

This is on fully-updated MSYS-2, using mingw64 gcc and libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant