PDA

View Full Version : strange x264 compile error with visual studio


mehmeto
12th November 2008, 15:21
Dear All,
I've just grabbed a x264 daily tarball from ftp://ftp.videolan.org/pub/videolan/x264/snapshots/ and trıed to compile it with Visual Studio 2003.
I got the strange error in set.c :
x264-snapshot-20081111-2245\encoder\set.c(530): error C2010: '.' : unexpected in macro formal parameter list

The source snipped is

#define ERROR(...)\
{\
if( verbose )\
x264_log( h, X264_LOG_WARNING, __VA_ARGS__ );\
ret = 1;\
}

Am I doing something wrong or do I need something extra.

Thanks in Advance...

kemuri-_9
12th November 2008, 15:23
iirc, VS 2003 support was dropped and it now requires 2005 or 2008 to work.
but this may just my memory playing tricks on me...

imo you shouldn't be trying to compile it something that old from M$ anyways....

squid_80
12th November 2008, 18:01
Support for variadic macros was introduced in Visual C++ 2005. (http://msdn.microsoft.com/en-us/library/ms177415.aspx)