Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / September 2006



Tip: Looking for answers? Try searching our database.

Codecvt linker error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
hem - 11 Sep 2006 10:00 GMT
Hello,

Can someone help me out to resolve the following error in Codewarrior.

Link Error   : Undefined symbol: ?id%?$codecvt%_WDH%std%%2V0locale%2%A
'class std::locale::id std::codecvt<wchar_t, char, int>::id' in
lfile.obj

Actually my code does not use "codecvt". Can you also clarify what are
those special symbols in the error? Does it tell something to me? How
to analyze these symbols?

I run codewarrior7.1 with PDK4.0 on Windows to generate binary (nlm)
for Netware...

Thanks for your time...

Regards,
hem
David Phillip Oster - 12 Sep 2006 02:51 GMT
> Hello,
>
[quoted text clipped - 10 lines]
> I run codewarrior7.1 with PDK4.0 on Windows to generate binary (nlm)
> for Netware...

You are probably doing something that involves conversion between
std::strings and std::wstrings, causing C++ to generate a call to the
hem - 12 Sep 2006 15:00 GMT
Thanks for your attention to the post...

I use some third party libraries and which are causing the problems...

Can I resolve those errors somehow now?

Thanks,
hem

> > Hello,
> >
[quoted text clipped - 13 lines]
> You are probably doing something that involves conversion between
> std::strings and std::wstrings, causing C++ to generate a call to the
David Phillip Oster - 12 Sep 2006 15:37 GMT
> > > Hello,
> > >
[quoted text clipped - 13 lines]
> > You are probably doing something that involves conversion between
> > std::strings and std::wstrings, causing C++ to generate a call to the

> Thanks for your attention to the post...
>
[quoted text clipped - 4 lines]
> Thanks,
> hem

I've never hit this exact problem, (and in fact my last posting on this
thread wasn't finished) but I see that the Metrowerks Standard Library  
includes a file called localeimp that might cure your problem (and that
file is conditionally included from <codecvt>.

Are your #define'ed symbols set up correctly?)  

Since this is a problem with a third-party library, can you get in touch
with them?
hem - 18 Sep 2006 07:22 GMT
I could resolve the error after including <localeimp> in my code...I
could also resolve many linker errors by removing inconsistent file
endings...

Thanks for your help David...

Regards,
Hem

> > > > Hello,
> > > >
[quoted text clipped - 32 lines]
> Since this is a problem with a third-party library, can you get in touch
> with them?
Howard Hinnant - 23 Sep 2006 23:09 GMT
> I could resolve the error after including <localeimp> in my code

Perhaps #include <locale> would be a more portable solution.  <localimp>
is an implementation-specific header.  <locale> will include it, and
will likely work as well on other platforms.

-Howard
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.