• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Compiling c++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compiling c++


  • Subject: Compiling c++
  • From: John Nairn <email@hidden>
  • Date: Mon, 16 Jan 2012 11:57:03 -0800

My Cocoa app (developing in Lion with Xcode 4.1) has a collection of C++ files (utility methods I developed a long time ago). It has compiled from clean state fine ever since updating to Lion and Xcode 4.x. For the first time today, I changed one of the C++ files and now it won't compile with error message

     Expected '=', ','. ';', 'asm', or '__attribute__' before 'TimeSpane

When I googled this error I found it occurs when compiler is using C instead of C++. But, I was compiling fine before and I made no change to convert to C vs. C++ so what has happened?

The C++ file names being compiled all use extension .cpp and header files use extension .h. They all compiled fine in XCode 4.1 until today?

John Nairn
------------
John Nairn
http://www.geditcom.com
Genealogy Software for the Mac

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Compiling c++
      • From: Scott Ribe <email@hidden>
  • Prev by Date: Re: Framework copy
  • Next by Date: Re: Compiling c++
  • Previous by thread: Re: Framework copy
  • Next by thread: Re: Compiling c++
  • Index(es):
    • Date
    • Thread