From: bluerv AT my-deja DOT com Newsgroups: comp.os.msdos.djgpp Subject: Linker error using templates Date: Sun, 20 Feb 2000 20:17:27 GMT Organization: Deja.com - Before you buy. Lines: 45 Message-ID: <88pi4l$qgl$1@nnrp1.deja.com> NNTP-Posting-Host: 38.30.111.224 X-Article-Creation-Date: Sun Feb 20 20:17:27 2000 GMT X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT; Mozilla/4.0(compatible;MSIE 4.0b1;Windows95);Surfree) X-Http-Proxy: 1.1 x39.deja.com:80 (Squid/1.1.22) for client 38.30.111.224 X-MyDeja-Info: XMYDJUIDbluerv To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Can someone explain to me what I'm doing wrong here? My setup: v2/djdev203.zip DJGPP Basic Development Kit 1.5 mb v2apps/rhide14b.zip RHIDE 1.6 mb v2gnu/bnu281b.zip Basic assembler, linker 1.8 mb v2gnu/gcc2952b.zip Basic GCC compiler 1.8 mb v2gnu/gpp2952b.zip C++ compiler 1.6 mb v2gnu/lgpp295b.zip C++ libraries 484 kb v2gnu/mak3781b.zip Make (processes makefiles) 257 kb The code: --------------- #include struct foo : public std::string_char_traits { }; typedef basic_string CIString; int main(void) { CIString foo; foo = "temp"; return 0; } --------------- The error: tempprob.o: In function `basic_string >::basic_string(void)': tempprob.cpp:1: undefined reference to `basic_string >::nilRep' make.exe: *** [tempprob.exe] Error 1 Sent via Deja.com http://www.deja.com/ Before you buy.