Skip to main content
gamedev.net
🔒 Locked

why forward declaration

Started by nlbs Oct 22, 2008 at 11:58 PM 1 replies 550+ views
Original Post
nlbs
nlbs
I've a file called var.h and I've class Var n it. when I am doing #include "var.h" Its not throwing any compilation errors. but saying Var undecleared. If I just do a forward Declearation without #include Directive Its also firing some other errors. However when I do both #include and forward declaration it compiles. No my question is why !!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.