List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:April 5 2006 5:01am
Subject:Re: Visual C++ 7.1. compiler error when including custom.h
View as plain text  
Tim Stewart wrote:
> 
> error C2010: '.' : unexpected in macro formal parameter list

Alas, this is because VC++ 2003 doesn't support variadic macros, used by 
a new feature in MySQL++ v2.1.  That feature allows you to #include a 
file containing an SSQLS definition in multiple modules and avoid a 
linker error resulting from the static variable definitions in some 
SSQLS macros.

In the upcoming MySQL++ v2.1.1, I've added a feature to custom.pl to 
disable this feature, which will fix this problem.  You will need a Perl
interpreter to run the custom.pl script.  Alternately, you can manually 
hack out the MYSQLPP_SSQLS_NO_STATICS stuff in custom.h and custom-macros.h.
Thread
Visual C++ 7.1. compiler error when including custom.hTim Stewart3 Apr
  • Re: Visual C++ 7.1. compiler error when including custom.hWarren Young5 Apr
    • Re: Visual C++ 7.1. compiler error when including custom.hTim Stewart5 Apr
      • Re: Visual C++ 7.1. compiler error when including custom.hWarren Young5 Apr
        • Re: Visual C++ 7.1. compiler error when including custom.hTim Stewart5 Apr