strange error - error C2061: syntax error : identifier 'software'

I really need help here with a strange error:

The function with main is this one:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <iostream>
#include <list>
#include <string>
#include "Record.h"
#include "resource.h"
#include "PublisherCreator.h"
#include "Author.h"
#include "Active.h"
#include "Collection.h"

int main() {

...
resource *res1 = new software(title,isbn,url,file,location,date,description,0,1,2,0,keywords,pblist,alist);
}


It gives the error: error C2061: syntax error : identifier 'software'
But it gives the error only when I include the Active.h file:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef ACTIVE_H
#define ACTIVE_H

#include <list>
#include "Record.h"
#include "Collection.h"

class activerecords {
public:
	activerecords(std::list<collection> &collections) : _collections(collections), _head(0) {}

private:

	std::list<collection> &_collections;
	record *_head;

};

#endif 


It's strange because the include file isn't related with the record file.
No answers.
Does this means that the error isn't a beginner one?
I certainly can't figure it out from the info given.
Can you post some more headers, and maybe the code from the main function before you attempt the resource *res1 = new software bit?
Topic archived. No new replies allowed.