This one is driving me nuts. I hope that it has just been a long day
and I am missing something stupid. Here is the .h and .cpp to the class
I am just starting:
//-----------------------------------------------------------------------------
//
// FILE: lg_data_table.h
#ifndef LG_DATA_TABLE_H_INCLUDED
#define LG_DATA_TABLE_H_INCLUDED 1
class lg_data_table : public data_table
{
public:
lg_data_table(xml_lst&);
~lg_data_table(){};
int get_current_row_num(){return row_nm_cnt;};
void incrmnt_row(){row_nm_cnt++;};
protected:
int row_nm_cnt;
};
#endif;
//-----------------------------------------------------------------------------
//
// FILE: lg_data_table.cpp
#include <baselib.h>
#include <lg_data_table.h>
lg_data_table::lg_data_table(xml_lst& xml_lst):row_nm_cnt(0)
{
//then i do stuff with xml_lst which is not important to this example
}
when I try to compile I get an error saying that "row_nm_cnt is not a
member of lg_data_table"
I have no idea what is going on. I haved tried adding other member
variables and the same things happens. Anyone have any ideas. I am lost
for now.