in form2: #include "form1.h"
its redefinition error since im including form2 in form 1 .. and then in form 2 im including form 1 and form is including form 2 again and makes an error...
how can i declare both of them without doing redefinition?
- include guard maybe? but i dont know how it is used .. im trying
Why are your include guards named after the file that's being included, as opposed to the file they belong to?
It's typical that you name your include guards after the file that they're guarding against circular / recursive inclusion.
file.h
1 2 3 4
#ifndef _FILE_H_
#define _FILE_H_
/**/
#endif
As for why you're getting linking errors, there's no way of knowing without looking at some actual code.