Possible problem with compiler setup

I am using the latest version of Code::Blocks. I tried compiling a program which i am just starting to develop the engine for. When I tried to compile it to "spell check" it, I got 2 errors"

C:\Users\jason and veronica\Desktop\Dashboards\Projects\Enemy Mine\CAlien.h|4|error: CSpecies.h: No such file or directory|


C:\Users\jason and veronica\Desktop\Dashboards\Projects\Enemy Mine\CAlien.h|8|error: expected class-name before '{' token|

Here are the files that make me believe I have done everything right:

CSpecies.h //This is parent to the other 2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef CSPECIES_H
#define CSPECIES_H


class CSpecies
{
    public:
        CSpecies();
        virtual ~CSpecies();
    protected:
    private:
};

#endif // CSPECIES_H 


CPlayer.h//Derived from CSpecies.h Appears to compile correctly
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef CPLAYER_H
#define CPLAYER_H

#include <CSpecies.h>


class CPlayer : public CSpecies
{
    public:
        CPlayer();
        virtual ~CPlayer();
    protected:
    private:
};

#endif // CPLAYER_H 


CAlien.h//errors on lines 4 and 8???
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef CALIEN_H
#define CALIEN_H

#include <CSpecies.h>


class CAlien : public CSpecies
{
    public:
        CAlien();
        virtual ~CAlien();
    protected:
    private:
};

#endif // CALIEN_H 


I feel like a knucklehead because I know someone is going to point out a minor typo somewhere that my 2+hours of scouring the code has not revealed to myself. I've tried everything I can think of(Thats not a whole lot with my minimal experience) to figure this problem out. I am desperate for help.

Thanks-
Desperate KnuckleHead
line 4 of CPlayer.h and CAlien.h dont you think you need to use #include "CSpecies.h"
and not #include <CSpecies.h>
the header file is in the same folder.....
Last edited on
Tejashs is the hero of the hour! Thanks Tejashs. :o)
Topic archived. No new replies allowed.