Hey all-
Anyone doing STL work with c++ on MacOSX? I'm trying to compile a test program that uses ropes, but I get a linker error:
[toad_hall:~/projects/c++] zesty% c++ ropetest.cpp
/usr/bin/ld: Undefined symbols:
__t4rope2ZcZt9allocator1Zc._S_min_len
The code is:
#include <iostream>
#include <rope>
int main(void)
{
crope r(1000000, 'x');
crope r2 ;
r2 += r + "abc" + r;
crope r3 = r2.substr(1000000,3);
cout << r3 << endl;
cout << "this may take awhile...." << endl;
crope r4 = r2.substr(1000000,1000000);
reverse(r2.mutable_begin(), r2.mutable_end());
cout << "done." << endl;
return 0;
}
Anyone else had problems with the STL that comes with OSX? I was going to try setting up STLPort, but since both are based on the SGI version, I kinda figured it wasn't worth it.
Thanks for any info,
Zesty
Anyone doing STL work with c++ on MacOSX? I'm trying to compile a test program that uses ropes, but I get a linker error:
[toad_hall:~/projects/c++] zesty% c++ ropetest.cpp
/usr/bin/ld: Undefined symbols:
__t4rope2ZcZt9allocator1Zc._S_min_len
The code is:
#include <iostream>
#include <rope>
int main(void)
{
crope r(1000000, 'x');
crope r2 ;
r2 += r + "abc" + r;
crope r3 = r2.substr(1000000,3);
cout << r3 << endl;
cout << "this may take awhile...." << endl;
crope r4 = r2.substr(1000000,1000000);
reverse(r2.mutable_begin(), r2.mutable_end());
cout << "done." << endl;
return 0;
}
Anyone else had problems with the STL that comes with OSX? I was going to try setting up STLPort, but since both are based on the SGI version, I kinda figured it wasn't worth it.
Thanks for any info,
Zesty