• 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: affa <email@hidden>
  • Date: Thu, 03 May 2007 12:40:14 +0200

Jerry schrieb:

On 3 May 2007, at 10:12, affa wrote:

Hey there,
I'm trying to get into XCode compiling, but i am facing some problems.
can anyone tell me why the following doesn't compile?

...
int function(Vector3& v1)
...

int otherfunction()
{
Vector3 v;
int j = function(v); // working
int i = function(Vector3()); // not working, "no matching function for call to function(Vector3)
// candidates are int function(Vector3&)
}
...



what's the problem here? it's compiling on a PC with Visual Studio, but not in XCode, are there any compiler settings that can tweak this?


thanks for any help.

You can't pass a temporary as an argument which is not declared "const".

int function( const Vector &v1 )

Jerry
Ok, thanks for that
_______________________________________________
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: Laurence Harris <email@hidden>
References: 
 >XCode compiling issues (From: affa <email@hidden>)
 >Re: XCode compiling issues (From: Jerry <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