missing type specifier - int assumed - Migrating from VC++ 6.0 to 2005

  • Thread starter Thread starter hockeymtl
  • Start date Start date
H

hockeymtl

Guest
Im trying to compile a DLL created in VC++ 6.0 in VC++ 2005.



I have the following errors :

Error 40 error C2146: syntax error : missing ';' before identifier 'm_CurrentIterator' c:\EMERGE_4_0\development\BaseObject\Include\IP5STLList.h 58
Error 41 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\EMERGE_4_0\development\BaseObject\Include\IP5STLList.h 58
Error 118 error C2146: syntax error : missing ';' before identifier 'm_CurrentIterator' c:\EMERGE_4_0\development\BaseObject\Include\IP5STLList.h 58
Error 119 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\EMERGE_4_0\development\BaseObject\Include\IP5STLList.h 58




Here's the code used :




#include

<iostream>


#include <list>


using

namespace std;





template

<class T>


class xObjList {

private:

char* m_strNameOfOwner;

xReadWriteLock* m_pRWLock;

list<T*> m_pList;


list<T*>::iterator m_CurrentIterator;

...​




Can anyone help please ?​











Continue reading...
 
Back
Top