linking problem
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??