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
1742
March 03, 2021 12:30AM
737
March 03, 2021 07:55AM
756
March 03, 2021 08:45AM
718
March 03, 2021 09:52AM
1247
March 03, 2021 03:54PM
806
March 04, 2021 03:42AM
681
March 04, 2021 09:06AM
820
March 04, 2021 09:12AM
777
March 04, 2021 10:01AM
803
March 04, 2021 10:29AM
754
March 04, 2021 11:38AM
854
March 05, 2021 04:47AM
693
March 07, 2021 09:29AM
Re: c++ and Exlipse
884
May 23, 2021 10:26AM
843
May 24, 2021 03:01AM
698
May 24, 2021 12:46PM
701
May 25, 2021 03:05PM
762
May 25, 2021 04:32PM
691
May 26, 2021 04:04PM
672
March 26, 2021 01:13AM
622
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.