Re: XCode compiling issues
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