linking problem
Posted by: Piera Laura Puglisi
Date: September 02, 2005 06:56AM

I have the following problem. I defined new procedures in a new source file, where I used vectors.
There's no problem in compiling; it's a linking problem.
The file contains:

#include <vector>
using namespace std;

... process_input(...)
{
...
}

and other function that define and use vectors.

I have the errors:

sql_func.o(.text+0x1bd): In function `process_input(st_read_record*, st_lex*, std::vector<int, std::allocator<int> >&, int)':
: undefined reference to `std::vector<int, std::allocator<int> >::erase(__gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int> > >, __gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int> > >)'
sql_func.o(.text+0x1ff): In function `process_input(st_read_record*, st_lex*, std::vector<int, std::allocator<int> >&, int)':
: undefined reference to `std::vector<int, std::allocator<int> >::_M_fill_insert(__gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int> > >, unsigned, int const&)'

I use Debian Sarge and mysql-4.1.12 source distribution.

Someone can help me??

Options: ReplyQuote


Subject
Views
Written By
Posted
linking problem
815
September 02, 2005 06:56AM


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.