If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Linker error in C++

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-03-02, 17:06
cela_vei cela_vei is offline
Registered User
 
Join Date: Jul 2002
Posts: 4
Linker error in C++

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<con st 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");

}
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On