Multiple Souce Files
Im haveing a lil problem with getin my main souce file recognising my Objects created in my other source files eg..
//////////////////////////////////////
class _myClass { //has a bender if I specifying ne thing after
//class when i compile this source file
_myClass();
~_myClass()
public:
void afunction();
};
extern _myClass WorkDamit;
_myClass::afunction()
{
cout << "im working";
}
///////////////////////////////////////
#include
_myclass Workdamit; //wont compile past this point
void main()
{
WorkDamit::aFunction();
}
help!!!
~prevail by daring to fail~
|
That's all, folks...
MatrixCubed
http://MatrixCubed.org

Edited by - MatrixCubed on August 10, 2001 7:33:25 AM
[ Odyssey Project ]
The layout of your code isnt very clear from your post...
it should look something like this....
This should work, unless I have missed something....
it should look something like this....
|
This should work, unless I have missed something....
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement