• 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
Re: XCode compiling issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode compiling issues


  • Subject: Re: XCode compiling issues
  • From: Paul Walmsley <email@hidden>
  • Date: Thu, 03 May 2007 12:05:28 +0100


Hi.
Microsft compiler isn't made to be compliant to the C++ standard (i.e. ISO/IEC 14882:2003), but is made to build Windows applications. So, is possible that some non-standard C++ code compiles in Visual C++ but not in Xcode (gcc 4.0.1). Anyway if you make "const" the parameter in function, you will respect the C++ standard and you'll be able to compile your code in Xcode (as well as in Visual C++).


Not strictly true in this case -- this code generates a warning in VS.Net:
d:\source\trunk\projects\sibelius\scoreview\scoreview.cpp(142) : warning C4239: nonstandard extension used : 'argument' : conversion from 'Music' to 'Music &'
1> A non-const reference may only be bound to an lvalue

So if you take note of the warnings the compiler gives you then it tells you your code isn't portable.


Paul

_______________________________________________
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: XCode compiling issues
      • From: affa <email@hidden>
References: 
 >RE: XCode compiling issues (From: "Luca Ciciriello" <email@hidden>)

  • Prev by Date: RE: XCode compiling issues
  • Next by Date: Re: XCode compiling issues
  • Previous by thread: RE: XCode compiling issues
  • Next by thread: Re: XCode compiling issues
  • Index(es):
    • Date
    • Thread