There are a lot of svn compilation error threads, I think there should be one to keep things clear, so this is a try of making one.
For starters, I get this problem when trying to compile svn 1477, and had it a few versions backwards:
associations.cpp: In function `void Associations::SetBatchBuildOnly()':
associations.cpp:12: error: `MAX_PATH' undeclared (first use this function)
associations.cpp:12: error: (Each undeclared identifier is reported only once for each function it appears in.)
associations.cpp:13: error: `name' undeclared (first use this function)
associations.cpp:13: error: `GetModuleFileName' undeclared (first use this function)
associations.cpp:18: error: `SHCNE_ASSOCCHANGED' undeclared (first use this function)
associations.cpp:18: error: `SHCNF_IDLIST' undeclared (first use this function)
associations.cpp:18: error: `SHChangeNotify' undeclared (first use this function)
and a lot more errors of this type from the same file.
kernel 2.6.14
wx 2.6.2