Log in

View Full Version : Avisynth updates for vs2005


foxyshadis
3rd June 2006, 17:05
I finally took another crack at compiling Avisynth on VS2005, which is more cranky than 2003 about the C++ spec.

src/core/parser/script.cpp

AVSValue FindStr(AVSValue args, void*, IScriptEnvironment* env)
- { char *pdest;
+ { const char *pdest;
int result;


src/core/main.cpp

#endif
#else
- #define _RPT5(rptno, msg, a1, a2, a3, a4, a5) _RPT4(msg, a1, a2, a3, a4)
+ #define _RPT5(rptno, msg, a1, a2, a3, a4, a5) _RPT4(rptno, msg, a1, a2, a3, a4)
#endif


distrib/include/pfc/string.h
src/core/parser/expression.h

#pragma warning(disable:4430) // disable default-int error
(Somewhere near the top)


You also need to use /Zc:forScope- until the scoping mess is fixed. (I tried once and munged it up, I'll give it another go sometime.) The soundtouch library has to be found and recompiled, but that's no biggie (as long as it's set to dynamic linkage).

Lastly, you must use ml.exe 7.1 that comes with VS2003 to build convert_a.asm. The new ml.exe changes syntax (I'm not sure exactly how) and the old VS6 version won't compile due to lack of -safeseh, which you must use when building with 7.1. Unless safeseh can be safely turned off for the entire project? You can get 7.1 from the kernel DDK (http://www.microsoft.com/whdc/driver/WDF/KMDF_pkgdwn.mspx?), either by installing or extracting from the cabs (I forget exactly which it was, check the inf files).

Fizick
3rd June 2006, 20:15
why not post to sticky thread?

foxyshadis
4th June 2006, 05:49
Wasn't thinking. If a mod wants to merge it in, fine.