CVS error

Daniel Morissette dmorissette at DMSOLUTIONS.CA
Tue Feb 7 08:56:20 EST 2006

Kralidis,Tom [Burlington] wrote:
> In file included from map.h:2068,
>                  from mapogr.cpp:137:
> mapows.h:379: error: syntax error before `template'
> make: *** [mapogr.o] Error 1

This is a problem that we had encountered a while ago with all the other 
instances of "template" in C structs, when used in a C++ file since 
template is a reserved keyword in C++.

The solution that we had implemented everywhere else and that I applied 
to mapows.h is to use _template in C++:

#ifndef __cplusplus
         char *template;
         char *_template;

Steve: since this is a new object that you just added, if you could use 
something other than template then that might be ever better.

  Daniel Morissette               dmorissette at
  DM Solutions Group    

More information about the mapserver-dev mailing list