Michael Gatford wrote:
We compile the following code with gcc (historically 2.95.3,
egcs-2.91.66 or VC5/6 on Windows).
std::map<string, thisfunc> quickfindtag;
Shouldn't 'string' be 'std::string' also?
I have just installed Fedora Core 4 and am trying to compile it with
gcc 4.0.0 (Redhat 4.0.0-8). However I get the error message:
FmDisplay.h: In member function 'mapTags<X>::doCommand(X*, const char*)'
FmDisplay.h:61: error: expected `;' before 'functionIterator'
FmDisplay.h:62: error: 'functionIterator' was not declared in this scope
I do not know why this is happening. I installed gcc 2.95.3 and got
exactly the same error message so it is possibly to do with the Fedora
installation rather than gcc.
The same code compiles ok on Solaris 5.6/7 with egcs-2.91.66 and on
Redhat 8.0 with gcc 2.95.3.
Thanks in advance.
Mike