MySQL Forums
Forum List  »  Connector/C++

Re: undefined reference to `get_driver_instance'
Posted by: Ryan Hirscher
Date: June 24, 2021 10:58AM

Update: I downloaded the windows version not the linux. Big mistake. Yet I updated my code appropriately and I get different undefined references.
Error: /tmp/ccGbB3Jd.o: In function `check_lib()':
sqlTest.cpp:(.text+0x1d): undefined reference to `check(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
sqlTest.cpp:(.text+0x68): 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&)'
collect2: error: ld returned 1 exit status

There were a lot more headerfiles in other directories. Do I need to include all of those as well? or do I need to edit my PATH env to those directories?

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: undefined reference to `get_driver_instance'
1380
June 24, 2021 10:58AM


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.