MySQL Forums
Forum List  »  Connector/C++

c++ and Exlipse
Posted by: Joseph Carmon
Date: March 03, 2021 12:30AM

After adding the MySQL Connector c++ using the windows msi installers I copied the sample project, but am receiving the following errors during linking

C:/Program Files/MySQL/Connector C++ 8.0/include/jdbc/cppconn/driver.h:77: undefined reference to `check(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
C:/Program Files/MySQL/Connector C++ 8.0/include/jdbc/cppconn/driver.h:78: undefined reference to `check(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&)'
Trading.o: In function `get_driver_instance_by_name':
C:/Program Files/MySQL/Connector C++ 8.0/include/jdbc/cppconn/driver.h:90: undefined reference to `_get_driver_instance_by_name'
collect2.exe: error: ld returned 1 exit status

I am using eclipse for the IDE. Any help would be appreciated.

Options: ReplyQuote


Subject
Views
Written By
Posted
c++ and Exlipse
2365
March 03, 2021 12:30AM
915
March 03, 2021 07:55AM
934
March 03, 2021 08:45AM
953
March 03, 2021 09:52AM
1542
March 03, 2021 03:54PM
994
March 04, 2021 03:42AM
841
March 04, 2021 09:06AM
1044
March 04, 2021 09:12AM
1020
March 04, 2021 10:01AM
998
March 04, 2021 10:29AM
978
March 04, 2021 11:38AM
1071
March 05, 2021 04:47AM
883
March 07, 2021 09:29AM
1204
May 23, 2021 10:26AM
1088
May 24, 2021 03:01AM
971
May 24, 2021 12:46PM
913
May 25, 2021 03:05PM
990
May 25, 2021 04:32PM
883
May 26, 2021 04:04PM
919
March 26, 2021 01:13AM
839
March 26, 2021 06:17AM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

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.