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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:39:12+00:00 2026-06-13T05:39:12+00:00

I have a simple OpenGL project in Xcode. Xcode started to behave in a

  • 0

I have a simple OpenGL project in Xcode.

Xcode started to behave in a strange way after upgrading to 4.5

In the following line

#include <fstream.h>

Compilation fails with the following error meesage: Lexical or Preprocessor Issue ‘fstream.h’ file not found.

The same code used to compile sucessfully in Xcode 4.2

changing the line to

#include <c++/4.2.1/backward/fstream.h>

fixes the problem but generates several other compilation errors.

  • 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-13T05:39:13+00:00Added an answer on June 13, 2026 at 5:39 am

    fstream.h is not a C++ header. When you use the longer path name you’re accessing a different, incompatible standard library implementation (named libstdc++) that had a compatibility header named fstream.h (for compatibility with pre-standard C++; C++ was standardized over 14 years ago).

    fstream.h worked with Xcode 4.2 because that version of Xcode used libstdc++ by default, but Xcode 4.5 has moved to use libc++ by default instead.

    The solution is to use standard C++ and include <fstream>.

    Alternatively, and I wouldn’t recommend this, you could switch the standard library implementation you’re using in your project settings.

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

Sidebar

Related Questions

I have written a simple OpenGL program in C++ that displays a line joining
I have an iPhone OpenGL-ES 1.1 project that renders simple 3D models. If I
I have a simple particle effect in OpenGL using GL_POINTS. The following is called,
I have very simple OpenGL ES example similar to Hehe's example : http://nehe.gamedev.net/tutorial/ios_lesson_02__first_triangle/50001/ As
I have a simple OpenGL application where I have 2 objects displayed on screen:
I have a simple OpenGL drawing. When the user changes the window's size, I
OK, I have made simple rectangular using OpenGL, and it looks pretty simple glNormal3f(0.0f,
I have a simple iPhone application which uses OpenGL ES (v1) to draw a
This is hopefully a simple question: I have an OpenGL texture and would like
I have a problem with OpenGl ES 2.0. I've designed a very simple framework

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.