search for: pcstr

Displaying 5 results from an estimated 5 matches for "pcstr".

Did you mean: xcstr
2007 Nov 07
4
[LLVMdev] LLVM 2.1 with VC++
I've come across a couple errors when building LLVM 2.1 in VC++ 2005. 1) CodeGen/RegisterCoalescer.cpp is not included in the project 2) System/Win32/DynamicLibrary.inc - ELM_Callback is declared with a PSTR ModuleName argument. This causes a compile error - the callback typedef specifies PCSTR. Also, I'd like to suggest adding the following to config.h, to eliminate the spurious deprecation warnings: #define _CRT_SECURE_NO_WARNINGS #define _SCL_SECURE_NO_WARNINGS #define _CRT_NONSTDC_NO_WARNINGS And moving #include "llvm/Config/config.h" in all the files above any other...
2011 Nov 02
3
[LLVMdev] [PATCH] LLVM 3.0 broken in lib/Support/Windows/DynamicLibrary.inc
.../Support/Windows/DynamicLibrary.inc index 83da82a..dba81b4 100644 --- a/lib/Support/Windows/DynamicLibrary.inc +++ b/lib/Support/Windows/DynamicLibrary.inc @@ -43,10 +43,34 @@ static DenseSet<HMODULE> *OpenedHandles; extern "C" { - static BOOL CALLBACK ELM_Callback(WIN32_ELMCB_PCSTR ModuleName, - ULONG_PTR ModuleBase, +// Use old callback if: +// - Not using Visual Studio +// - Visual Studio 2005 or earlier but only if we are not using the Windows SDK +// or Windows SDK version is older than 6.0 +// Use new callback if: +// - Newer Visu...
2009 Apr 08
0
[LLVMdev] DynamicLibrary.inc compile error /w vc++2005 and windows sdk 6.1
...ere, I'm having a problem compiling llvm with vc++ 2005 and windows sdk6.1. It seems that the Platform SDK supplied with vc++2005 uses PSTR for the first param of PENUMLOADED_MODULES_CALLBACK64 typedef (dbghelp.h) and the windows sdk 6.1 (also windows sdk 6.0a that ships with vc++2008) uses PCSTR. The _MSC_VER macro guard for ELM_Callback(...) kinda kills the possibility of using VC++2005 with SDK 6.1 and without the macro guard, one will require to have SDK6.0A+ setup with vc++2005. Is there any known workaround to this issue? 1>d:\dev\llvm\lib\system\Win32/DynamicLibrary.inc(116) :...
2008 Feb 21
1
[LLVMdev] Is there someone tried LLVM 2.1 on Visual Studio 2005?
.... >// 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 >_______________________________________________ >LLVM Developers mailing list >LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
2008 Feb 12
3
[LLVMdev] Is there someone tried LLVM 2.1 on Visual Studio 2005?
Hello all, Is there anyone has tried LLVM 2.1 on Visual Studio 2005? I did but not succeed due to some build errors. I seem to remember I read somewhere on this list it's compiled on VS2005 so I wonder... Have a good night. Thx, Seung