Re: c++ and Exlipse
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':
Subject
Views
Written By
Posted
1369
March 03, 2021 12:30AM
598
March 03, 2021 07:55AM
612
March 03, 2021 08:45AM
568
March 03, 2021 09:52AM
984
March 03, 2021 03:54PM
646
March 04, 2021 03:42AM
547
March 04, 2021 09:06AM
647
March 04, 2021 09:12AM
630
March 04, 2021 10:01AM
673
March 04, 2021 10:29AM
606
March 04, 2021 11:38AM
670
March 05, 2021 04:47AM
556
March 07, 2021 09:29AM
Re: c++ and Exlipse
694
May 23, 2021 10:26AM
520
March 26, 2021 01:13AM
501
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.