unindentified classes

Started by
13 comments, last by SiCrane 18 years, 5 months ago
Use the forward declaration and put the definition of cEmitter::Function() in a source file instead of the header.
Advertisement
forward declare a function? what's the syntax of that?

note: of course the DoSomething function is in the class cGraphics

class cGraphics
{
cParticleSytem PS;

DoSomething();
};

forgot that too...

is that what you meant by forward declaring that function?
-------------------------Unless specified otherwise, my questions pertain:Windows Platform (with the mindset to keep things multi-platform as possible)C++Visual Studio 2008OpenGL with SFML
OHH! i see what you mean. don't have it inline like that, just define it, then put the code in the .cpp file. i'll try that
-------------------------Unless specified otherwise, my questions pertain:Windows Platform (with the mindset to keep things multi-platform as possible)C++Visual Studio 2008OpenGL with SFML
sweet, that fixed the Global variable thing, but i'm still having a problem with the ParticleSystem still being an undeclared identifier...

-------------------------Unless specified otherwise, my questions pertain:Windows Platform (with the mindset to keep things multi-platform as possible)C++Visual Studio 2008OpenGL with SFML
Seems like a good time to put cParticleSystem into its own header.

This topic is closed to new replies.

Advertisement