5 Replies - 1021 Views - Last Post: 07 September 2010 - 05:45 PM Rate Topic: -----

#1 onorinbejasus   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 156
  • Joined: 22-February 09

Unknown Error

Posted 07 September 2010 - 04:56 PM

I am trying to figure out what this error means.

Here is the code:

vPixelInProjectorCoords = new Vector4((0.0f),       // this coordinate is filled in below
			  (float)(jScreen - vCR_Image_Intersection.Y()), //Projector Y is image Y  	




Here is the error:


error: no match for 'operator=' in 'vPixelInProjectorCoords = (((#'float_expr' not supported by dump_expr#<expression error> - ((Projector*)this)->Projector::vCR_Image_Intersection. Vector::Y()), ((Projector*)this)->Projector::vPrincipalPosition. Vector::Z()), (((Vector4*)operator new(64u)), (<anonymous>->Vector4::Vector4(0.0f, <anonymous>, <anonymous>), <anonymous>)))'

This post has been edited by onorinbejasus: 07 September 2010 - 04:57 PM


Is This A Good Question/Topic? 0
  • +

Replies To: Unknown Error

#2 Splatocaster   User is offline

  • D.I.C Head
  • member icon

Reputation: 51
  • View blog
  • Posts: 182
  • Joined: 22-December 09

Re: Unknown Error

Posted 07 September 2010 - 05:00 PM

What comes after
(float)(jScreen - vCR_Image_Intersection.Y()),

Was This Post Helpful? 0
  • +
  • -

#3 Cha0sBG   User is offline

  • D.I.C Head
  • member icon

Reputation: 7
  • View blog
  • Posts: 167
  • Joined: 09-April 09

Re: Unknown Error

Posted 07 September 2010 - 05:11 PM

And is the vPixelInProjectorCoords declared as a pointer from the start ? ^^
Maybe it has something to do with that.
Was This Post Helpful? 0
  • +
  • -

#4 onorinbejasus   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 156
  • Joined: 22-February 09

Re: Unknown Error

Posted 07 September 2010 - 05:34 PM

   vPixelInProjectorCoords = new Vector4((0.0f),                                        // this coordinate is filled in below
(float)(jScreen - vCR_Image_Intersection.Y()), //Projector Y is image Y 
 (float)(vPrincipalPosition.Z()));  




and no, it is not declared as a pointer to begin with
Was This Post Helpful? 0
  • +
  • -

#5 JackOfAllTrades   User is offline

  • Saucy!
  • member icon

Reputation: 6260
  • View blog
  • Posts: 24,030
  • Joined: 23-August 08

Re: Unknown Error

Posted 07 September 2010 - 05:42 PM

If vPixelInProjectorCoords is NOT a pointer, then you CAN'T use new to create an instance of it. new returns a pointer to newly-allocated memory on the heap.
Was This Post Helpful? 0
  • +
  • -

#6 Splatocaster   User is offline

  • D.I.C Head
  • member icon

Reputation: 51
  • View blog
  • Posts: 182
  • Joined: 22-December 09

Re: Unknown Error

Posted 07 September 2010 - 05:45 PM

http://www.cplusplus...torial/dynamic/

It should be a pointer

This post has been edited by Splatocaster: 07 September 2010 - 05:47 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1