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
1160
March 03, 2021 12:30AM
509
March 03, 2021 07:55AM
532
March 03, 2021 08:45AM
465
March 03, 2021 09:52AM
760
March 03, 2021 03:54PM
554
March 04, 2021 03:42AM
461
March 04, 2021 09:06AM
560
March 04, 2021 09:12AM
543
March 04, 2021 10:01AM
561
March 04, 2021 10:29AM
524
March 04, 2021 11:38AM
575
March 05, 2021 04:47AM
466
March 07, 2021 09:29AM
Re: c++ and Exlipse
563
May 23, 2021 10:26AM
568
May 24, 2021 03:01AM
455
May 24, 2021 12:46PM
463
May 25, 2021 03:05PM
518
May 25, 2021 04:32PM
435
May 26, 2021 04:04PM
439
March 26, 2021 01:13AM
430
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.