Quantcast
Channel: MySQL Forums - Connector/C++
Viewing all articles
Browse latest Browse all 527

Error trying to connect to MySQL with Eclipse (no replies)

$
0
0
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?

Viewing all articles
Browse latest Browse all 527

Trending Articles