-
external classes
can i do external class definitions with the extern keyword? i don't want to have a seperate copy of the class definitions... [or seperate them from the class function declarations and include them parallel per each obj code / cpp]...
something like...
Code:
extern class MY_CLASS;
extern MY_CLASS class_instance;
also, if MY_CLASS is nested with many subclasses, do i have to extern those as well [provided that i _could_] correct? thanks quite so...
-
Why not? I'm pretty sure you can. :)
-
Code:
q.cpp:16: `extern' can only be specified for objects and functions
error... so no? DJGPP is my compiler... and if there isn't a standard for this, i'll be damned... any alternative that does require seperation or duplication of the class declaration inclusion?
-
please continue it here...
external user defined types