Image

Imagezeronobus wrote in Imagecpp

Code not compiling in newer compiler

I have a segment of code that compiles fine with g++ 2.95 on my Linux machine, but fails with g++ 3.2.1 on Solaris.

The offending code seems entirely centred around typedefs involving the STL. Lines such as
typedef map<char*, LockId> nameMapper;
are suddenly returning "syntax error before ;" statements ("map" is included, as well as the header that defines "LockId").

Any thoughts on what I'm missing that would make 3.2.1 happy?