void InsertList (Key2List* k);
has an erroneous space between "InsertList" and "(...".
No, that doesn't matter. It is not pretty, but it is not wrong either.
The error is not in the piece of code you posted, it compiles fine (with include and forward decl added):
#include <ios>
using namespace std;
class Letter;
class Key2Letter;
class Key2List;
class Symbols
{
private:
char code[27]; // The encoding of each letter
Letter **c; // The Letters from a-z
Key2Letter **key; // The keys for the letters
char stop; // When to stop reading from input
int number;
public:
Symbols();
void Remove(int num);
void Switch(int num1,int num2);
void SortNewList();
friend istream &operator>>(istream &in,Symbols &s);
friend ostream &operator<<(ostream &out,Symbols &s);
void InsertList (Key2List* k);
};
int main()
{
return 0;
}
-------------- Build: default in console ---------------
mingw32-g++.exe -IC:\mingw\include -c main.cpp -o .objs\main.o
mingw32-g++.exe -LC:\mingw\lib -o console.exe .objs\main.o
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings
It must be somewhere else. Forgotten ";" in some earlier place maybe?