Jump to content

View more

Image of the Day

WIP title screen for #DeathOfAPartisan #screenshotsaturday #gamedev https://t.co/qJNhfZCvd4
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

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

4: Adsense

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   

277
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   130 downloads


#2 Washu   Senior Moderators   

7804
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   

277
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.