A weird error of _imp prefix

I am a c++ newbie trying to connect to a database through c++ source code, but after seemingly added libraries where appropriate, i get screwed with '_imp_ZN3sql5mysql19_get_driver_instanceEv' error.What could have been the problem please help me go further.

Please post the FULL text of the error message.
The full error text is "undefined reference to 'imp_ZN3sql5mysql19_get_driver_instanceEv'.collect2: id return 1 exit status". Thanks.
You aren't properly linking whatever library provides that symbol -- is it libmysql, or a something related?

Make sure the link order is correct.
What link order is necessary cos I have linked libraries like libmysql.a, libmysql.dll etc.?
@mbozzi, thanks.
Last edited on
Please anyone here should grant me probable work around so as to get over this error. I ported the code to another platform(being MSVS which the former is codeblocks and DEV C++ IDEs), the errors were many and fatal. The code us a simple database Connection with c++. If need be to post the code let me know.
you need libmysql.lib for windows. The dll is run-time, the lib is compile time.
that .a thing is something for unix. Its probably wrong for windows, unless its a force-fit like a Cygwin compile to allow usage on windows.
Last edited on
Topic archived. No new replies allowed.