Patch 7.0.mswin
Problem: On Windows, when gvim is built by the command
nmake -f Make_mvc.mak DEBUG=yes FEATURES=NORMAL GUI=yes OLE=yes
then the linker will issue the error message
if_ole.obj : error LNK2019:i
unresolved external symbol _MultiByteToWideChar_alloc
referenced in function
"public: virtual long __stdcall
CVim::Eval(wchar_t *,wchar_t * *)"
Solution: Include this function into the built also when OLE is enabled.
Files: src/mswin.c
*** ..\vim-7.0.000\src\os_mswin.c 2006-05-07 16:13:03.000000000 +0200
--- src\os_mswin.c 2006-06-04 17:38:32.981234300 +0200
***************
*** 957,962 ****
--- 957,966 ----
return outlen;
}
+ #endif /* FEAT_MBYTE */
+
+ #if defined(FEAT_MBYTE) || defined(FEAT_OLE) || defined(PROTO)
+
/*
* Call MultiByteToWideChar() and allocate memory for the result.
* Returns the result in "*out[*outlen]" with an extra zero appended.
***************
*** 977,982 ****
--- 981,990 ----
}
}
+ #endif /* FEAT_MBYTE || FEAT_OLE */
+
+ #if defined(FEAT_MBYTE) || defined(PROTO)
+
/*
* Call WideCharToMultiByte() and allocate memory for the result.
* Returns the result in "*out[*outlen]" with an extra NUL appended.
--
Thanks a lot for the VIM Editor
Greetings
Mathias