std::codecvt undefined with CW9.6 and Xcode 2.x

std::codecvt undefined with CW9.6 and Xcode 2.x

Post by paklei » Sat, 05 Nov 2005 16:04:30


This issue was discussed earlier and declared resolved (see Kurt Bigler
Sep 2); however, I continue to have trouble. I'm writing a BSD Mach-O
console app. I can get the link error to go away if my precompiled
header begin with

#define _MSL_USING_MW_C_HEADERS 1

however, I then get an access fault exception in the first call to
strlen. I am linking against libraries compiled with gcc 4.0.
 
 
 

std::codecvt undefined with CW9.6 and Xcode 2.x

Post by paklei » Mon, 07 Nov 2005 01:17:37

Hi Ron,

The system paths for my project are set as you described. However, if I
take this project and try to build it with CW9.6, rebuilding all
precompiled headers or not using them at all, I am unable to resolve
the linker errors:

Link Error : undefined: 'std::codecvt<char, char,
__mbstate_t>::codecvt(unsigned long)' (code)

Referenced from 'const std::codecvt<char, char, __mbstate_t>&
std::__use_facet<std::codecvt<char, char, __mbstate_t> >(const
std::locale&, std::__chooser<(__bool8)1>)'

Link Error : undefined: 'std::codecvt<char, char, __mbstate_t>::id'
(non lazy ptr IL)
Referenced from 'const std::codecvt<char, char, __mbstate_t>&
std::__use_facet<std::codecvt<char, char, __mbstate_t> >(const
std::locale&, std::__chooser<(__bool8)1>)'