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
920
March 03, 2021 12:30AM
412
March 03, 2021 07:55AM
403
March 03, 2021 08:45AM
370
March 03, 2021 09:52AM
527
March 03, 2021 03:54PM
400
March 04, 2021 03:42AM
365
March 04, 2021 09:06AM
450
March 04, 2021 09:12AM
376
March 04, 2021 10:01AM
429
March 04, 2021 10:29AM
372
March 04, 2021 11:38AM
442
March 05, 2021 04:47AM
370
March 07, 2021 09:29AM
Re: c++ and Exlipse
425
May 23, 2021 10:26AM
421
May 24, 2021 03:01AM
350
May 24, 2021 12:46PM
331
May 25, 2021 03:05PM
419
May 25, 2021 04:32PM
336
May 26, 2021 04:04PM
339
March 26, 2021 01:13AM
333
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.