[LLVMdev] Is there someone tried LLVM 2.1 on Visual Studio 2005?

Xi Wang xi.wang at gmail.com
Tue Feb 19 20:02:29 PST 2008


Hi there,

Did anyone try VS2008/Vista?  There would a compile error (LLVM
2.1/2.2) at Line 126 in the file DynamicLibrary.inc.
// EnumerateLoadedModules(GetCurrentProcess(), ELM_Callback, 0);
Maybe MS changed the parameter type in the latest platform SDK.

A simple workaround.  At line 47 in the same file DynamicLibrary.inc,
// static BOOL CALLBACK ELM_Callback(PSTR  ModuleName, ...
change PSTR to PCSTR, and everything is OK.

I don't know if this works for VS2005/XP.

Xi



More information about the llvm-dev mailing list