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 8195033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:00:03+00:00 2026-06-07T05:00:03+00:00

I had been working on a cocos2d-x project for the QNX platform and I

  • 0

I had been working on a cocos2d-x project for the QNX platform and I am now moving to the iPhone platform to finish developing. I copied all the files over and created a new Xcode4 project and then imported them, but when I go to compile it, I get 40-something errors in the NSObjCRuntime.h.
Then it says: Too many errors emitted, stopping now.
Some of the errors read:
Unknown type name ‘NSString’; did you mean ‘CCString’?
Use of undeclared identifier ‘NSString’; did you mean ‘CCString’?
Use of undeclared identifier ‘Protocol’
Use of undeclared identifier ‘format’; did you mean ‘normal’?
Use of undeclared identifier ‘namestr’

I looked at my Prefix.pch file, after research this seemed to be part of the problem, but everything is wrapped in the #ifdef OBJC … #endif condition so I don’t think that’s the issue. I even tried commenting out the code there and still it gave me the same errors.

How can I fix this?

Thanks!

EDIT: This actually seems to be a problem with the OpenGLES library. When it’s not included and I comment out all gl calls, the errors go away. Any thoughts?
I used this code to load the OpenGLES Library:

#import <OpenGLES/EAGL.h>
  • 1 1 Answer
  • 0 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-06-07T05:00:05+00:00Added an answer on June 7, 2026 at 5:00 am

    I figured it out! It was because in Cocos2d-x 2.0 they’ve changed a lot of the drawing functions from version 1. It’s no longer like regular OpenGLES, you have to use their built in methods to set up OpenGLES.

    See this link: Migrate to v2.0

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

Sidebar

Related Questions

I've been working on this iPhone app for a while now, and I had
I had been working on server side(c#) for a couple of years. But now
I had been developing a console application, until our project needed a fancy UI
I have been working on rails project, which had been made using noSql(Mongoid). Every
I've been working on a Java project for year. My code had been working
I have been working on an iPhone App for a couple of weeks now
I have been working on a project which had been split over several servers
I had been working on a WPF project for a while, but haven't touched
Code that had been working is suddenly not. Printing works fine in all browsers
I have been working on a json decode issue (which I have already had

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.