compiler (pre-processing?) error of SDL project

Posts: 321
Joined: 2004.10
Post: #1
I get this one last error in Xcode:

/Developer/SDKs/MacOSX10.4.0.sdk/usr/include/gcc/darwin/4.0/c++/bits/codecvt.h:475:44: error: bits/codecvt_specializations.h: No such file or directory

When I double click on the error above in Xcode, the file is opened to this segment:

#include <bits/codecvt_specializations.h>

I have no idea what _GLIBCXX_USE_WCHAR_T. When I google it I get some really
heavy deep discussions way above my compreshension. So I guess I could just ignore
it; that is, set _GLIBCXX_USE_WCHAR_T to 0 or undefined.

How do I do this?

I tried


in my main.cpp file. And I also went into the Xcode->project->info->
CNU C/C++ Compiler 4.0 -> Preprocessing -> Preprocessor Macros
filed and there set _GLIBCXX_USE_WCHAR_T 0.

But neither seems to work. Can anybody correct me on what to do?

Say, what does one call the tag _GLIBCXX_USE_WCHAR_T? It's not a
macro is it? Could it ba called a define variable?

Quote this message in a reply
Posts: 133
Joined: 2008.05
Post: #2
IF you define something as 0, it's still defined. It's not a normal if statement. Try #undef _GLIBCXX_USE_WCHAR_T

I don't know what it is, or why that is happening, but I'm sure it's something deeper than just undeffing it.
Quote this message in a reply
Posts: 321
Joined: 2004.10
Post: #3
In disperation I just redid the project from scratch and everything now
works. Never did figure a workaround, but that's a good thing Smile
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Weird Compiler WARNING... help? Elphaba 1 3,566 Aug 10, 2009 10:51 PM
Last Post: Elphaba
  Curious Compiler Issue? WhatMeWorry 1 3,580 Jan 16, 2007 03:52 PM
Last Post: OneSadCookie
  weird compiler warnings/errors in Xcode 2.0 Andrew 15 10,643 May 13, 2005 01:07 AM
Last Post: Andrew