MySQL Forums
Forum List  »  Connector/C++

Re: c++ and Exlipse
Posted by: Clive Seguna
Date: May 23, 2021 10:26AM

Why I get the following errors? The problem seems to be with some eclipse settings. Thanks. I tried various solutions by looking all over the internet but no success :(

Invoking: Cygwin C++ Linker
g++ -o "database.exe" ./src/database.o
/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/../../../../x86_64-pc-cygwin/bin/ld: ./src/database.o:C:\Program Files\MySQL\mysql-connector-c++-8.0.25-winx64-debug\mysql-connector-c++-8.0.25-winx64\include\jdbc/cppconn/driver.h:77: undefined reference to `check(std::string const&)'
./src/database.o: in function `check_lib':
C:\Program Files\MySQL\mysql-connector-c++-8.0.25-winx64-debug\mysql-connector-c++-8.0.25-winx64\include\jdbc/cppconn/driver.h:77:(.text+0x22): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `check(std::string const&)'
/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/../../../../x86_64-pc-cygwin/bin/ld: C:\Program Files\MySQL\mysql-connector-c++-8.0.25-winx64-debug\mysql-connector-c++-8.0.25-winx64\include\jdbc/cppconn/driver.h:78: undefined reference to `check(std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)'
C:\Program Files\MySQL\mysql-connector-c++-8.0.25-winx64-debug\mysql-connector-c++-8.0.25-winx64\include\jdbc/cppconn/driver.h:78:(.text+0x6d): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `check(std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)'
/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/../../../../x86_64-pc-cygwin/bin/ld: ./src/database.o:C:\Program Files\MySQL\mysql-connector-c++-8.0.25-winx64-debug\mysql-connector-c++-8.0.25-winx64\include\jdbc/cppconn/driver.h:90: undefined reference to `_get_driver_instance_by_name'
./src/database.o: in function `get_driver_instance_by_name':
C:\Program Files\MySQL\mysql-connector-c++-8.0.25-winx64-debug\mysql-connector-c++-8.0.25-winx64\include\jdbc/cppconn/driver.h:90:(.text+0xd1): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `_get_driver_instance_by_name'
/usr/lib/gcc/x86_64-pc-cygwin/9.3.0/../../../../x86_64-pc-cygwin/bin/ld: ./src/database.o:C:\Program Files\MySQL\mysql-connector-c++-8.0.25-winx64-debug\mysql-connector-c++-8.0.25-winx64\include\jdbc/mysql_driver.h:106: undefined reference to `sql::mysql::_get_driver_instance_by_name(char const*)'
./src/database.o: in function `get_driver_instance_by_name':

Options: ReplyQuote


Subject
Views
Written By
Posted
1788
March 03, 2021 12:30AM
751
March 03, 2021 07:55AM
762
March 03, 2021 08:45AM
724
March 03, 2021 09:52AM
1270
March 03, 2021 03:54PM
816
March 04, 2021 03:42AM
690
March 04, 2021 09:06AM
833
March 04, 2021 09:12AM
787
March 04, 2021 10:01AM
811
March 04, 2021 10:29AM
765
March 04, 2021 11:38AM
867
March 05, 2021 04:47AM
704
March 07, 2021 09:29AM
Re: c++ and Exlipse
901
May 23, 2021 10:26AM
856
May 24, 2021 03:01AM
712
May 24, 2021 12:46PM
713
May 25, 2021 03:05PM
776
May 25, 2021 04:32PM
703
May 26, 2021 04:04PM
688
March 26, 2021 01:13AM
630
March 26, 2021 06:17AM


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.