Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 747613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:13:32+00:00 2026-05-14T14:13:32+00:00

This is really several questions, but anyway… I’m working with a big project in

  • 0

This is really several questions, but anyway…

I’m working with a big project in XCode, relatively recently ported from MetroWorks (Yes, really) and there’s a bunch of warnings that I want to get rid of. Every so often an IMPORTANT warning comes up, but I never look at them because there’s too many garbage ones. So, if I can either figure out how to get XCode to stop giving the warning, or actually fix the problem, that would be great. Here are the warnings:

  • It claims that <map.h> is antiquated.
    However, when I replace it with <map>
    my files don’t compile. Evidently,
    there’s something in map.h that isn’t
    in map…
  • this decimal constant is unsigned only in ISO C90
    This is a large number being compared to an unsigned long. I have even cast it, with no effect.
  • enumeral mismatch in conditional expression: <anonymous enum> vs <anonymous enum>
    This appears to be from a ?: operator. Possibly that the then and else branches don’t evaluate to the same type? Except that in at least one case, it’s
    (matchVp == NULL ? noErr : dupFNErr)

    And since those are both of type OSErr, which is mac defined… I’m not sure what’s up. It also seems to come up when I have other pairs of mac constants…

  • multi-character character constant

    This one is obvious. The problem is that I actually NEED multi-character constants…

  • -fwritable-strings not compatible with literal CF/NSString

    I unchecked the “Strings are Read-Only” box in both the project and target settings… and it seems to have had no effect…

  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T14:13:32+00:00Added an answer on May 14, 2026 at 2:13 pm

    Items in <map.h> are in the global namespace while items in <map> are in the std namespace. Most likely you were just referring directly to the global versions and when you switched to <map> you were no longer seeing them because they moved to std::. In source files add a using namespace std to move on quickly. In headers you’ll need to qualify uses of map-related items with std::.

    I think you’ll need to qualify the literal constant value with a trailing UL so it knows the correct type of the literal.

    Most likely the enums are in two separate OS defined anonymous enums. You can static_cast them to quiet the warning.

    No idea on the multi-byte chars.

    Can you disable -fwritable-strings? Can you refactor the code that needs to modify constant strings?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This has been annoying me for a while in several XCode projects. I really
I have seen several similar questions to this, but none that addresses my specific
I know there are several questions on this subject but none of them seem
This really seems like a bug to me, but perhaps some databinding gurus can
This really puzzled for hours, I searched all over the internet, but got no
hey guys having this really simple problem but cant seem to figure out have
I'm having this really mind breaking problem. I created a Localizable.strings file in XCode
I've read several questions regarding UAC and privilege elevation but I've not found a
I'm really sorry, I realize there have been several questions asked about cocos2d touch
I've seen several questions about password protecting pages, but none of them seem to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.