Originally Posted by
joeprogrammer
How in the world did you get it to compile? For one thing, you'll need to #include <iterator> if you intend on using ostream_iterator.
I didnt manage to get it compile thats why I was getting the error. Thanks for the advice on the iterator, the site that I took the code snippet from did not have that header in the sample code.
Originally Posted by
joeprogrammer
Tokenize( inputString, token ); // add an 's' to 'token'
My appologies on the spelling mistake, that was human error as I copied the code from my laptop to the desktop, in the original program this was correct.
Originally Posted by
joeprogrammer
void Tokenize( const string& str, vector<string>& tokens, const string& delimiters = "|")
{
// Tokenize taken from [url]http://www.hispafuentes.com/[/url]
// Skip delimiters at the beginning
string::size_type lastPos = str.find_first_not_of( delimeters, 0 ); // you're spelling 'delimiters' wrong
Again this is due to inaccuracies in copying the program.
However non of these issues that were brought up solved the issue of the LNK2019 error.
Also thank you very much for the fast response, I have lurked on these forums and used some solutions for quite some time, however this is the first time I have needed to ask a question.
Delphi
Last edited by delphi_uk : Mar 15th, 2007 at 8:15 pm.