System : SunOS 5.8 Generic_108528-07 sun4u sparc SUNW,Ultra-60
Compiler : CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-06 2002/03/09

I am trying to compile the following code segment with the command
CC -template=no%extdef example.cpp

and I get the error

void __rwstd::__rb_tree<const char*,std:air<const char*const,int>,__rwstd::__select1st<std:air<const char*const,int>,const char*>,ltstr,std::allocator<std:air<const char*const,int> > >::__deallocate_buffers() example.o
ld: fatal: Symbol referencing errors. No output written to a.out

#include <map
using namespace std;

struct ltstr
bool operator()(const char* s1, const char* s2) const
return 1;


int main()
map<const char*, int, ltstr> months;

months["january"] = 31;

map<const char*, int, ltstr>::iterator cur = months.find("june");