From: shabbirsuterwala AT yahoo DOT com (Shabss) Newsgroups: comp.os.msdos.djgpp Subject: Newbie: Using STL with wstring. Getting compilation errors Date: 14 Jan 2003 15:22:49 -0800 Organization: http://groups.google.com/ Lines: 112 Message-ID: NNTP-Posting-Host: 207.104.152.48 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1042586569 13954 127.0.0.1 (14 Jan 2003 23:22:49 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: 14 Jan 2003 23:22:49 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, I would really appreciate help on the following. I have just installed DJGPP. Following is the set of files i downloaded: bnu213b.zip copying.dj csdpmi5b.zip djdev203.zip faq230b.zip gcc321b.zip gdb521b.zip gpp321b.zip mak3791b.zip pakk022b.zip readme.1st rhid149b.zip txi42b.zip Following is the command line that rhide executes. gcc -ID:/Projects/Common -g -w -D __DOS__ -D _GLIBCPP_USE_WCHAR_T -c ../../Common/Part/Attr.cpp -o obj/Attr.o My code uses STL and wstring extensivly. I have defined _GLIBCPP_USE_WCHAR_T when invoking the compiler. I got many errors (below) but i think is a minor issue. Has somebody seen this ? Is there a way to fix this ? Help is really appreciated. I also tried to compiled with older version of STL gpp2952.zip, but the compiler crashed. I tried to mix-match differnt versions 2.952 and 3.21; it did compile but gave lot of "Unreferenced symbol .." errors during link. If above cannot be solved then i request help with this one. Thanks Shabss d:/djgpp/lang/cxx/3.21/cwchar(137) Error: `btowc' not declared d:/djgpp/lang/cxx/3.21/cwchar(138) Error: `fgetwc' not declared d:/djgpp/lang/cxx/3.21/cwchar(139) Error: `fgetws' not declared d:/djgpp/lang/cxx/3.21/cwchar(140) Error: `fputwc' not declared d:/djgpp/lang/cxx/3.21/cwchar(141) Error: `fputws' not declared d:/djgpp/lang/cxx/3.21/cwchar(142) Error: `fwide' not declared d:/djgpp/lang/cxx/3.21/cwchar(143) Error: `fwprintf' not declared d:/djgpp/lang/cxx/3.21/cwchar(144) Error: `fwscanf' not declared d:/djgpp/lang/cxx/3.21/cwchar(145) Error: `getwc' not declared d:/djgpp/lang/cxx/3.21/cwchar(146) Error: `getwchar' not declared d:/djgpp/lang/cxx/3.21/cwchar(147) Error: `mbrlen' not declared d:/djgpp/lang/cxx/3.21/cwchar(148) Error: `mbrtowc' not declared d:/djgpp/lang/cxx/3.21/cwchar(149) Error: `mbsinit' not declared d:/djgpp/lang/cxx/3.21/cwchar(150) Error: `mbsrtowcs' not declared d:/djgpp/lang/cxx/3.21/cwchar(151) Error: `putwc' not declared d:/djgpp/lang/cxx/3.21/cwchar(152) Error: `putwchar' not declared d:/djgpp/lang/cxx/3.21/cwchar(153) Error: `swprintf' not declared d:/djgpp/lang/cxx/3.21/cwchar(154) Error: `swscanf' not declared d:/djgpp/lang/cxx/3.21/cwchar(155) Error: `ungetwc' not declared d:/djgpp/lang/cxx/3.21/cwchar(156) Error: `vfwprintf' not declared d:/djgpp/lang/cxx/3.21/cwchar(157) Error: `vfwscanf' not declared d:/djgpp/lang/cxx/3.21/cwchar(158) Error: `vswprintf' not declared d:/djgpp/lang/cxx/3.21/cwchar(159) Error: `vswscanf' not declared d:/djgpp/lang/cxx/3.21/cwchar(160) Error: `vwprintf' not declared d:/djgpp/lang/cxx/3.21/cwchar(161) Error: `vwscanf' not declared d:/djgpp/lang/cxx/3.21/cwchar(162) Error: `wcrtomb' not declared d:/djgpp/lang/cxx/3.21/cwchar(163) Error: `wcscat' not declared d:/djgpp/lang/cxx/3.21/cwchar(164) Error: `wcscmp' not declared d:/djgpp/lang/cxx/3.21/cwchar(165) Error: `wcscoll' not declared d:/djgpp/lang/cxx/3.21/cwchar(166) Error: `wcscpy' not declared d:/djgpp/lang/cxx/3.21/cwchar(167) Error: `wcscspn' not declared d:/djgpp/lang/cxx/3.21/cwchar(168) Error: `wcsftime' not declared d:/djgpp/lang/cxx/3.21/cwchar(169) Error: `wcslen' not declared d:/djgpp/lang/cxx/3.21/cwchar(170) Error: `wcsncat' not declared d:/djgpp/lang/cxx/3.21/cwchar(171) Error: `wcsncmp' not declared d:/djgpp/lang/cxx/3.21/cwchar(165) Error: `wcscoll' not declared d:/djgpp/lang/cxx/3.21/cwchar(166) Error: `wcscpy' not declared d:/djgpp/lang/cxx/3.21/cwchar(167) Error: `wcscspn' not declared d:/djgpp/lang/cxx/3.21/cwchar(168) Error: `wcsftime' not declared d:/djgpp/lang/cxx/3.21/cwchar(169) Error: `wcslen' not declared d:/djgpp/lang/cxx/3.21/cwchar(170) Error: `wcsncat' not declared d:/djgpp/lang/cxx/3.21/cwchar(171) Error: `wcsncmp' not declared d:/djgpp/lang/cxx/3.21/cwchar(172) Error: `wcsncpy' not declared d:/djgpp/lang/cxx/3.21/cwchar(173) Error: `wcsrtombs' not declared d:/djgpp/lang/cxx/3.21/cwchar(174) Error: `wcsspn' not declared d:/djgpp/lang/cxx/3.21/cwchar(175) Error: `wcstod' not declared d:/djgpp/lang/cxx/3.21/cwchar(176) Error: `wcstof' not declared d:/djgpp/lang/cxx/3.21/cwchar(177) Error: `wcstok' not declared d:/djgpp/lang/cxx/3.21/cwchar(178) Error: `wcstol' not declared d:/djgpp/lang/cxx/3.21/cwchar(179) Error: `wcstoul' not declared d:/djgpp/lang/cxx/3.21/cwchar(180) Error: `wcsxfrm' not declared d:/djgpp/lang/cxx/3.21/cwchar(181) Error: `wctob' not declared d:/djgpp/lang/cxx/3.21/cwchar(182) Error: `wmemcmp' not declared d:/djgpp/lang/cxx/3.21/cwchar(183) Error: `wmemcpy' not declared d:/djgpp/lang/cxx/3.21/cwchar(184) Error: `wmemmove' not declared d:/djgpp/lang/cxx/3.21/cwchar(185) Error: `wmemset' not declared d:/djgpp/lang/cxx/3.21/cwchar(186) Error: `wprintf' not declared d:/djgpp/lang/cxx/3.21/cwchar(187) Error: `wscanf' not declared d:/djgpp/lang/cxx/3.21/cwchar(189) Error: `wcschr' not declared In function `wchar_t* std::wcschr(wchar_t*, wchar_t)': d:/djgpp/lang/cxx/3.21/cwchar(193) Error: invalid conversion from `const wcha `wchar_t*' At global scope: d:/djgpp/lang/cxx/3.21/cwchar(195) Error: `wcspbrk' not declared In function `wchar_t* std::wcspbrk(wchar_t*, wchar_t*)': d:/djgpp/lang/cxx/3.21/cwchar(199) Error: invalid conversion from `const wcha `wchar_t*' There are more such errors!