Jump to content

  • Log In with Google      Sign In   
  • Create Account

Getting rid of the pesky error C2027: Use of undefined type.


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Enerjak   Members   -  Reputation: 235

Like
0Likes
Like

Posted 24 April 2014 - 11:17 PM

Ok, maybe it's just me, (very likely, actually) But I Can never seem to get include files right and class declarations, and such.....Seriously, it's like I'm doing something wrong in visual studio, or maybe linking classes wrong, maybe not closing the header files right, I don't know. I'm going to upload my project on here to try to get some help on it, maybe some tips on how to make sure this NEVER happens again, because this has been the bane of my existence for as long as I've been a programmer. I cannot get past it. please, help me in making sure this never happens again....

 

Notes about the project: uses Direct3D11 + windows, no external libs used. 

 

Note 1.1: let me know if you need something else to get this to work but you shouldn't have a problem. Really hope to get some advice on this as it has driven me insane in the past.

Attached Files

  • Attached File  Pong.zip   701.29KB   43 downloads


Sponsor:

#2 Washu   Senior Moderators   -  Reputation: 5422

Like
4Likes
Like

Posted 24 April 2014 - 11:39 PM

You are attempting to call methods on pointers to types of which only the forward declaration is available at the time of the call.

 

You cannot call methods on pointers to incomplete types.

 

As an additional note, all you had to do was post the errors and your header files.


Edited by Washu, 24 April 2014 - 11:40 PM.

In time the project grows, the ignorance of its devs it shows, with many a convoluted function, it plunges into deep compunction, the price of failure is high, Washu's mirth is nigh.
ScapeCode - Blog | SlimDX


#3 Enerjak   Members   -  Reputation: 235

Like
0Likes
Like

Posted 25 April 2014 - 01:10 AM

Thanks.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS