Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Unable to link to STL libraries

2 views
Skip to first unread message

David Lynch

unread,
Jun 20, 2008, 3:53:21 PM6/20/08
to
I'm new to C++Builder (free edition), having used Borland C++ previously.

On an MS-Windows system, I'm using next_permutation from the STL
library and getting the error:

[Linker Error] Undefined symbol next_permuatation(int*,int*) referenced
from C:\PROGRAM FILES\BORLAND\CBUILDER\PROJECTS\UNIT4.OBJ

I have in my code:

#include <algorithm>
template <class BidirectionalIterator>
bool next_permutation (BidirectionalIterator first,
BidirectionalIterator last);
template <class BidirectionalIterator, class Compare>
bool next_permutation (BidirectionalIterator first,
BidirectionalIterator last, Compare comp);

I seem to have to Rogue Wave STL libraries installed but can't see what
library to link and how to link it.

David Lynch

0 new messages