<p>I have my own class inside the file "Particles.h" and the class's implementation is inside "Particles.cpp"</p>

<p>I want the file "Load.h" to recognize my classes inside there, so I've added the line</p>

<pre><code>#include "Particles.h"
</code></pre>

<p>and the file doesn't recognize it and in the past everything was OK (I haven't made any changes inside that class).</p>

<p>What should I do?</p>

[{'answer_id': 71984, 'author': 'mrgroucho', 'author_id': 10870, 'author_profile': 'https://Stackoverflow.com/users/10870', 'pm_score': 2, 'selected': False, 'text': '<p>It sounds like your include path - the list of directories that the compiler scans in order to locate files that you #include - is set incorrectly.  Which compiler are you using?</p>\n'}, {'answer_id': 72019, 'author': 'Steve Obbayi', 'author_id': 11190, 'author_profile': 'https://Stackoverflow.com/users/11190', 'pm_score': 0, 'selected': False, 'text': '<p>make sure the file "Particles.cpp" has also included "Particles.h" to start with and the files are in the same folder and they are all part of the same project. it will help if you also share the error message that you are getting from your compiler.</p>\n'}, {'answer_id': 72021, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>Dev C++,It uses GCC,\nThe line is:</p>\n\n<pre><code>Stone *stone[48];\n</code></pre>\n\n<p>and it says: "expected constructor, destructor, or type conversion before \'*\' token ".</p>\n'}, {'answer_id': 72109, 'author': 'CariElf', 'author_id': 12117, 'author_profile': 'https://Stackoverflow.com/users/12117', 'pm_score': 1, 'selected': False, 'text': "<p>Well, if you listed your error codes, it might help.  Off the top of my head, do you have something in Particles.h to make sure that the file is only included once? There are two methods of doing this.  The first is to use #pragma once, but I think that might be Microsoft specific.  The second is to use a #define.\nExample:</p>\n\n<pre><code>#ifndef PARTICLES_H \n#define PARTICLES_H\n\nclass CParticleWrapper\n{\n...\n};\n\n#endif\n</code></pre>\n\n<p>Also, unless you're deriving from a class in Particles.h or using an instance of a class instead of a pointer, you can use a forward declaration of the class and skip including the header file in a header file, which will save you compile time.</p>\n\n<pre><code>#ifndef LOAD_H\n#define LOAD_H\n\nclass CParticleWrapper;\n\nclass CLoader\n{\n   CParticleWrapper * m_pParticle;\n\npublic:\n\n   CLoader(CParticleWrapper * pParticle);\n   ...\n};  \n\n#endif\n</code></pre>\n\n<p>Then, in the Load.cpp, you would include the particle.h file.</p>\n"}, {'answer_id': 73068, 'author': 'Eclipse', 'author_id': 8701, 'author_profile': 'https://Stackoverflow.com/users/8701', 'pm_score': 0, 'selected': False, 'text': '<p>It sounds like you need to include the definition of the Stone class, but it would be impossible to say without more details.  Can you narrow down the error by removing unrelated code and post that?</p>\n'}]
['https://Stackoverflow.com/questions/71959', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']