missing ';' before '<class-head>'

Hello, VC++ is complaining about something but not sure what it is..
The title shows you what error i get and the code below is where the error is..

1
2
3
4
5
6
7
8
9
10
11
#pragma once                //INCLUDE ONCE ONLY
#include "constants.h"      //NATURAL CONSTANTS

class Atom
{
    private:
        //PRIVATE MEMBERS
        ChemID chemID;
        double migrE;
...
...


Basically all my classes throw this error. What is it? how to fix it?
Does anyone know?
Thanks a lot in advance,
Clodi
Do you have a semicolon after the closing brace of the class?

1
2
3
4
5
6
7
8
class Atom
{
    private:
        //PRIVATE MEMBERS
        ChemID chemID;
        double migrE;

}; <--
Which lines throws an error?
What is the content of constants.h?
content of constants.h:


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma once
#include <cmath>            //POW,SQRT,CBRT
#include <math.h>           //SQRT(),POW(),ABS()
#include <stdlib.h>         //RAND(),SRAND()
#include <time.h>           //TIME()
#include <stdio.h>          //WRITE TO/READ FROM FILE
#include <algorithm>        //SHUFFLE
#include <iostream>         //COUT
#include <vector>           //CLASS ::VECTOR

using namespace std;        //COUT
enum ChemID { A,B,vacancy };

//************************************************************************//
//*************CONSTANTS*************VALUES*************UNITS*************//
//************************************************************************//

const double V       = (double)2.57*(double)pow(10.,12.);      //s^(-1)
const double MIGREA  = (double)1.08;                           //eV
const double MIGREB  = (double)1.60;                           //eV
const double Kb      = (double)8.62*(double)pow(10.,-5.);      //eV K^(-1)
const double T       = (double)1.00*(double)pow(10.,3.);       //K

const int SUPERCELLSIZE = 2;

const int NCELLS        = 8;
const int NSITES        = 32;  //FCC
const int NNEIGHBOURS   = 12;  //FCC
const int NDIMENSIONS   = 3;   //FCC

const int NJUMPS        = 10000



line that throws the error is line 2 ( above )
Dindn't you forget to put something at the end of last line of constants.h?
F**K!!!!!!!!!!!!!!!!!!!!

Thank you so much.. :)
Topic archived. No new replies allowed.