Subject: | dbdimp.c(20) : error C2010: '.' : unexpected in macro formal parameter list |
The problem
...
cl -c -IC:/pache/Perl/site/lib/auto/DBI -nologo -Gf -W3 -MD -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_D
ES_FCRYPT -DNO_HASH_SEED -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -O2 -DNDEBUG=1 -DS
QLITE_PTR_SZ=4 -DVERSION=\"1.02\" -DXS_VERSION=\"1.02\" "-IC:\Perl\lib\CORE" dbdimp.c
Command line warning D4025 : overriding '/O1' with '/O2'
dbdimp.c
dbdimp.c(20) : error C2010: '.' : unexpected in macro formal parameter list
dbdimp.c(20) : error C2010: '.' : unexpected in macro formal parameter list
dbdimp.c(20) : error C2010: '.' : unexpected in macro formal parameter list
dbdimp.c(63) : warning C4013: 'snprintf' undefined; assuming extern returning int
The solution, use ANSI (not gcc specific) syntaxt,
change
#define sqlite_trace(level,fmt...) _sqlite_tracef(__FILE__, __LINE__, level, fmt)
to
#define sqlite_trace(level,fmt,__VA_ARGS__) _sqlite_tracef(__FILE__, __LINE__, level, fmt)