compiler (pre-processing?) error of SDL project

Member
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:

#ifdef _GLIBCXX_USE_WCHAR_T
#include <bits/codecvt_specializations.h>
#endif


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

#define _GLIBCXX_USE_WCHAR_T 0

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?

thanks.
Quote this message in a reply
Moderator
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
Member
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 2,279 Aug 10, 2009 10:51 PM
Last Post: Elphaba
  Curious Compiler Issue? WhatMeWorry 1 2,516 Jan 16, 2007 03:52 PM
Last Post: OneSadCookie
  weird compiler warnings/errors in Xcode 2.0 Andrew 15 6,721 May 13, 2005 01:07 AM
Last Post: Andrew