[x264-devel] VS2008 compilation error (need of replacement __WIN32__ with _WIN32)

Guillaume POIRIER gpoirier at mplayerhq.hu
Sun Dec 30 18:52:28 CET 2007


Hello,

BugMaster a écrit :
> I try to compile x264 in VS2008 and get the error:
> error LNK2019: unresolved external symbol _strtok_r referenced in function _parse_zones
> 
> For fixing this error I replace __WIN32__ with _WIN32 in osdep.h and it compiles
> successfully. So here is my patch which make that changes and also
> replace WIN32 with _WIN32 in cpu.c (I think this would be more correct)

Do you know if this patch is only valid for VS2008, or is it valid for 
all VC++ versions?

How about mingw? Does it define _WIN32 too? Does it need it?

short of knowing this, I'm afraid that this patch will break other 
development environments.

Guillaume



More information about the x264-devel mailing list