Visual C doesn't understand an empty array of structs which is sometimes generated by cmapdump.c. The attached patch fixes cmapdump.c so that if the number of entries is 0, generates a dummy entry. This works in both Visual C (tested on 2005 and 2008) and gcc.
Created attachment 4880 [details] fix for the issue
Fixed. Thanks.