MySQL Forums
Forum List  »  Connector/C++

Error trying to connect to MySQL with Eclipse
Posted by: Rudra Pravat
Date: June 21, 2016 04:30AM

Hello,

I am trying to connect to the MySQL Database using Eclipse for C++.

I have added the dynamic library mysqlcppconn.lib and also have the relevant dll files in my executable folder

I get the exact error
"
relocation truncated to fit: R_X86_64_32 against symbol `__imp_get_driver_instance' defined in .idata$5 section in C:\Program Files\MySQL\Connector.C++1.1\lib\opt\static/mysqlcppconn.lib(mysqlcppconn.dll.b) "


i have already tried adding -fPIC and -mcmodel=medium/large to compiler
and _mcmodel=medium/large and -dynamic to the linker.
Didnt have any success with these


Any help as to how can i resolve this error?

Options: ReplyQuote


Subject
Views
Written By
Posted
Error trying to connect to MySQL with Eclipse
779
June 21, 2016 04:30AM


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.