Re: [HACKERS] visual c++ compile error when included spi.h and trigger.h

2009-10-15 Thread Peter Eisentraut
On Thu, 2009-10-15 at 17:44 +0800, mingsoftt wrote: > I have thought of making visual c++ of not recognizing "typename" as a > keyword, say, by turning some compiler options to forced c mode > ( rather than c++). > Is there indeed such an option? If not, is there a way to resolve my > problem as de

[HACKERS] visual c++ compile error when included spi.h and trigger.h

2009-10-15 Thread mingsoftt
hi there, i have trouble compiling a c style program ( filename with extension cpp) written for visual C++. When i added the following #includes, >>> #include "spi.h" >>> #include "trigger.h" compilation errors say "error C2899: typename cannot be used outside a template declaration". I need th